authenticationUtils
Api Code Documentation / Exports / authenticationUtils
Table of contents
Variables
Functions
Variables
accessTokenExpirationInHoursWithrefreshToken
• Const
accessTokenExpirationInHoursWithrefreshToken: number
= config.accessTokenExpiration
Defined in
refreshTokenExpirationInHours
• Const
refreshTokenExpirationInHours: number
= config.refreshTokenExpiration
Defined in
Functions
createRefreshJWTToken
▸ createRefreshJWTToken(payload
, key
, algorithm?
): string
Creates a refresh JWT Token
Parameters
Name | Type | Default value |
---|---|---|
payload | Object | undefined |
key | string | undefined |
algorithm | "HS256" | "RS256" | "HS256" |
Returns
string
a string containing the encoded JWT token