External module "helpers/jwt"
Functions
Const approveLocationToken
- approveLocationToken(id: number): Promise<Object>
-
Parameters
Returns Promise<Object>
Const emailVerificationToken
- emailVerificationToken(id: number): Promise<Object>
-
Parameters
Returns Promise<Object>
Const generateToken
- generateToken(payload: string | object | Buffer, expiresIn: string | number, subject: string): Promise<Object>
-
Parameters
-
payload: string | object | Buffer
-
expiresIn: string | number
-
subject: string
Returns Promise<Object>
Const getLoginResponse
- getLoginResponse(user: User, type?: EventType, strategy?: undefined | string, locals?: Locals): Promise<object | object>
-
Parameters
-
-
-
Optional strategy: undefined | string
-
Optional locals: Locals
Returns Promise<object | object>
Const loginToken
- loginToken(user: User): Promise<Object>
-
Parameters
Returns Promise<Object>
Const passwordResetToken
- passwordResetToken(id: number): Promise<Object>
-
Parameters
Returns Promise<Object>
Const postLoginTokens
- postLoginTokens(user: User): Promise<object>
-
Parameters
Returns Promise<object>
Const refreshToken
- refreshToken(id: number): Promise<Object>
-
Parameters
Returns Promise<Object>
Const twoFactorToken
- twoFactorToken(user: User): Promise<Object>
-
Parameters
Returns Promise<Object>
Const verifyToken
- verifyToken(token: string, subject: string): Promise<Object>
-
Parameters
-
token: string
-
subject: string
Returns Promise<Object>
Generate a new approve location JWT