External module "src/helpers/jwt"
Functions
Const accessToken
-
Parameters
Returns Promise<string>
Const apiKeyToken
- apiKeyToken(apiKey: ApiKey): Promise<string>
-
Parameters
Returns Promise<string>
Const approveLocationToken
- approveLocationToken(id: string, ipAddress: string): Promise<string>
-
Parameters
-
id: string
-
ipAddress: string
Returns Promise<string>
Const checkInvalidatedToken
- checkInvalidatedToken(token: string): Promise<void>
-
Parameters
Returns Promise<void>
Const checkIpRestrictions
-
Parameters
Returns void
Const checkReferrerRestrictions
- checkReferrerRestrictions(apiKey: ApiKeyResponse, domain: string): void
-
Parameters
Returns void
Const emailVerificationToken
- emailVerificationToken(id: string): Promise<string>
-
Parameters
Returns Promise<string>
Const generateToken
- generateToken(payload: string | object | Buffer, expiresIn: string | number, subject: Tokens): Promise<string>
-
Parameters
-
payload: string | object | Buffer
-
expiresIn: string | number
-
Returns Promise<string>
Const getLoginResponse
-
Parameters
Const invalidateToken
- invalidateToken(token: string): Promise<void>
-
Parameters
Returns Promise<void>
Const loginToken
- loginToken(user: User): Promise<string>
-
Parameters
Returns Promise<string>
Const passwordResetToken
- passwordResetToken(id: string): Promise<string>
-
Parameters
Returns Promise<string>
Const postLoginTokens
- postLoginTokens(user: User, locals: Locals, refreshTokenString?: undefined | string): Promise<object>
-
Parameters
-
-
-
Optional refreshTokenString: undefined | string
Returns Promise<object>
Const refreshToken
- refreshToken(id: string): Promise<string>
-
Parameters
Returns Promise<string>
Const twoFactorToken
- twoFactorToken(user: User): Promise<string>
-
Parameters
Returns Promise<string>
Const verifyToken
-
Parameters
Generate an access token