new JWTAuth()
- Source:
Methods
-
generateToken(claims, options) → {string}
-
Generate a new JWT token.
Parameters:
Name Type Description claimsObject Json with user defined claims for a list of official claims optionsObject extra options for the generation - Source:
Returns:
JWT encoded token- Type
- string