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)](/doc/en/lb4/apidocs.authentication-jwt.jwtservice._constructor_.html) Constructs a new instance of the `JWTService` class

Methods

Method Modifiers Description
[generateToken(userProfile)](/doc/en/lb4/apidocs.authentication-jwt.jwtservice.generatetoken.html)
[verifyToken(token)](/doc/en/lb4/apidocs.authentication-jwt.jwtservice.verifytoken.html)