authenticationUtils
Api Code Documentation / Exports / authenticationUtils
Table of contents
Variables
Functions
Variables
accessTokenExpirationInMinutesWithrefreshToken
• Const
accessTokenExpirationInMinutesWithrefreshToken: 10
Defined in
refreshTokenExpirationInDays
• Const
refreshTokenExpirationInDays: 8
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