Page Contents

Home > @loopback/authentication-jwt

authentication-jwt package

@loopback/authentication-jwt

Classes

Class Description
JWTAuthenticationComponent  
JWTAuthenticationStrategy  
JWTService  
MyUserService  
RefreshToken  
RefreshTokenRepository  
RefreshtokenService  
SecuritySpecEnhancer A spec enhancer to add bearer token OpenAPI security entry to spec.component.securitySchemes
User  
UserCredentials  
UserCredentialsRepository  
UserRepository  

Interfaces

Interface Description
RefreshTokenRelations  
RefreshTokenService The token refresh service. An access token expires in limited time. Therefore token refresh service is needed to keep replacing the old access token with a new one periodically.
UserCredentialsRelations  
UserRelations  

Namespaces

Namespace Description
RefreshTokenConstants Constant values used when generating refresh token.
RefreshTokenServiceBindings Bindings related to token refresh service. The omitted explanation can be found in namespace RefreshTokenConstants.
TokenServiceBindings  
TokenServiceConstants  
UserServiceBindings  

Variables

Variable Description
OPERATION_SECURITY_SPEC  
SECURITY_SCHEME_SPEC  

Type Aliases

Type Alias Description
Credentials A pre-defined type for user credentials. It assumes a user logs in using the email and password. You can modify it if your app has different credential fields
RefereshTokenWithRelations  
SecuritySchemeObjects  
TokenObject Describes the token object that returned by the refresh token service functions.
UserCredentialsWithRelations  
UserWithRelations