Class: JwtAuthGuard
auth/src.JwtAuthGuard
Extends
IAuthGuard
Constructors
new JwtAuthGuard(tokenService, clsService, reflector, abstractTenantResolution)
new JwtAuthGuard(
tokenService
,clsService
,reflector
,abstractTenantResolution
?):JwtAuthGuard
Parameters
▪ tokenService: TokenService
<IAccessTokenPayload
, IRefreshTokenPayload
>
▪ clsService: ClsService
<UserClsStore
<IAccessTokenPayload
>>
▪ reflector: Reflector
▪ abstractTenantResolution?: AbstractTenantResolutionService
<IAccessTokenPayload
>
Returns
Overrides
AuthGuard('jwt').constructor
Source
libs/auth/src/lib/guards/jwt-auth.guard.ts:18
Properties
arguments
static
arguments:any
Inherited from
AuthGuard('jwt').arguments
Source
node_modules/typescript/lib/lib.es5.d.ts:305
caller
static
caller:Function
Inherited from
AuthGuard('jwt').caller
Source
node_modules/typescript/lib/lib.es5.d.ts:306
length
static
readonly
length:number
Inherited from
AuthGuard('jwt').length
Source
node_modules/typescript/lib/lib.es5.d.ts:302
name
static
readonly
name:string
Returns the name of the function. Function names are read-only and can not be changed.
Inherited from
AuthGuard('jwt').name
Source
node_modules/typescript/lib/lib.es2015.core.d.ts:95
Methods
canActivate
canActivate(
context
):Promise
<boolean
>
Verify the token is valid
Parameters
▪ context: ExecutionContext
{ExecutionContext}
Returns
Promise
<boolean
>
super.canActivate(context)
Overrides
AuthGuard('jwt').canActivate
Source
libs/auth/src/lib/guards/jwt-auth.guard.ts:33
getAuthenticateOptions
getAuthenticateOptions(
context
):IAuthModuleOptions
<any
>
Parameters
▪ context: ExecutionContext
Returns
IAuthModuleOptions
<any
>
Inherited from
AuthGuard('jwt').getAuthenticateOptions