Create a signed JWT for authentication.
User email address.
User role.
Whether the user account is active.
User document _id.
Optional
Session version for revocation checks.
Signed JWT token.
Create a signed JWT for authentication.