Class: AuthJwtGuard
Extends
object
Constructors
new AuthJwtGuard()
new AuthJwtGuard(
authenticationSettings,reflector):AuthJwtGuard
Parameters
| Parameter | Type |
|---|---|
authenticationSettings | AuthenticationSettingsInterface |
reflector | Reflector |
Returns
Inherited from
AuthGuard(AUTH_JWT_STRATEGY_NAME, { canDisable: true, }).constructor
Defined in
packages/nestjs-authentication/dist/guards/auth.guard.d.ts:6
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
authenticationSettings | readonly | AuthenticationSettingsInterface | AuthGuard(AUTH_JWT_STRATEGY_NAME, { canDisable: true, }).authenticationSettings |
options | readonly | AuthGuardOptions | AuthGuard(AUTH_JWT_STRATEGY_NAME, { canDisable: true, }).options |
reflector | readonly | Reflector | AuthGuard(AUTH_JWT_STRATEGY_NAME, { canDisable: true, }).reflector |
Methods
canActivate()
canActivate(
context):boolean|Promise<boolean> |Observable<boolean>
Parameters
| Parameter | Type |
|---|---|
context | ExecutionContext |
Returns
boolean | Promise<boolean> | Observable<boolean>
Inherited from
AuthGuard(AUTH_JWT_STRATEGY_NAME, { canDisable: true, }).canActivate
Defined in
packages/nestjs-authentication/dist/guards/auth.guard.d.ts:10
handleRequest()
handleRequest<
T>(err,user,info?):NonNullable<T>
Type Parameters
| Type Parameter | Default type |
|---|---|
T | ReferenceIdInterface<string> |
Parameters
| Parameter | Type |
|---|---|
err | undefined | Error |
user | T |
info? | Error |
Returns
NonNullable<T>
Defined in
packages/nestjs-auth-jwt/src/auth-jwt.guard.ts:11 (opens in a new tab)