Page Contents
Home > @loopback/authentication-jwt
authentication-jwt package
@loopback/authentication-jwt
Classes
Class
Description
[JWTAuthenticationComponent](/doc/en/lb4/apidocs.authentication-jwt.jwtauthenticationcomponent.html)
[JWTAuthenticationStrategy](/doc/en/lb4/apidocs.authentication-jwt.jwtauthenticationstrategy.html)
[JWTService](/doc/en/lb4/apidocs.authentication-jwt.jwtservice.html)
[MyUserService](/doc/en/lb4/apidocs.authentication-jwt.myuserservice.html)
[RefreshToken](/doc/en/lb4/apidocs.authentication-jwt.refreshtoken.html)
[RefreshTokenRepository](/doc/en/lb4/apidocs.authentication-jwt.refreshtokenrepository.html)
[RefreshtokenService](/doc/en/lb4/apidocs.authentication-jwt.refreshtokenservice.html)
[SecuritySpecEnhancer](/doc/en/lb4/apidocs.authentication-jwt.securityspecenhancer.html)
A spec enhancer to add bearer token OpenAPI security entry to `spec.component.securitySchemes`
[User](/doc/en/lb4/apidocs.authentication-jwt.user.html)
[UserCredentials](/doc/en/lb4/apidocs.authentication-jwt.usercredentials.html)
[UserCredentialsRepository](/doc/en/lb4/apidocs.authentication-jwt.usercredentialsrepository.html)
[UserRepository](/doc/en/lb4/apidocs.authentication-jwt.userrepository.html)
Interfaces
Interface
Description
[RefreshTokenRelations](/doc/en/lb4/apidocs.authentication-jwt.refreshtokenrelations.html)
[RefreshTokenService](/doc/en/lb4/apidocs.authentication-jwt.refreshtokenservice.html)
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](/doc/en/lb4/apidocs.authentication-jwt.usercredentialsrelations.html)
[UserRelations](/doc/en/lb4/apidocs.authentication-jwt.userrelations.html)
Namespaces
Namespace
Description
[RefreshTokenConstants](/doc/en/lb4/apidocs.authentication-jwt.refreshtokenconstants.html)
Constant values used when generating refresh token.
[RefreshTokenServiceBindings](/doc/en/lb4/apidocs.authentication-jwt.refreshtokenservicebindings.html)
Bindings related to token refresh service. The omitted explanation can be found in namespace `RefreshTokenConstants`.
[TokenServiceBindings](/doc/en/lb4/apidocs.authentication-jwt.tokenservicebindings.html)
[TokenServiceConstants](/doc/en/lb4/apidocs.authentication-jwt.tokenserviceconstants.html)
[UserServiceBindings](/doc/en/lb4/apidocs.authentication-jwt.userservicebindings.html)
Variables
Variable
Description
[OPERATION\_SECURITY\_SPEC](/doc/en/lb4/apidocs.authentication-jwt.operation_security_spec.html)
[SECURITY\_SCHEME\_SPEC](/doc/en/lb4/apidocs.authentication-jwt.security_scheme_spec.html)
Type Aliases
Type Alias
Description
[Credentials](/doc/en/lb4/apidocs.authentication-jwt.credentials.html)
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](/doc/en/lb4/apidocs.authentication-jwt.refereshtokenwithrelations.html)
[SecuritySchemeObjects](/doc/en/lb4/apidocs.authentication-jwt.securityschemeobjects.html)
[TokenObject](/doc/en/lb4/apidocs.authentication-jwt.tokenobject.html)
Describes the token object that returned by the refresh token service functions.
[UserCredentialsWithRelations](/doc/en/lb4/apidocs.authentication-jwt.usercredentialswithrelations.html)
[UserWithRelations](/doc/en/lb4/apidocs.authentication-jwt.userwithrelations.html)