Page Contents
Home > @loopback/authentication-jwt > JWTService
JWTService class
Signature:
export declare class JWTService implements TokenService
Implements: TokenService
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(jwtSecret, jwtExpiresIn) | Constructs a new instance of the JWTService class |
Methods
Method | Modifiers | Description |
---|---|---|
generateToken(userProfile) | ||
verifyToken(token) |