Get the set of user roles
Get the user data
Get the user version
Compare the plain password with the hashed password
plain password
boolean or throw UnauthorizedException
Check the user has all requiredPermissions or throw ForbiddenException
Check the user has one of the requiredRoles or throw ForbiddenException
Check the user has the "admin" role
Sign the jwt token
jwt token
Verify jwt token
jwt token
string or throw UnauthorizedException that indicated invalid or old versioned token
Check the jwt version matches with the provided token's version or thow Invalid Jwt version error
Get the set of user permissions