Skip to content

auth.Class.JwtGuard

Sclable CI edited this page Oct 7, 2024 · 7 revisions

@sclable/nestjs-libs / auth / JwtGuard

Class: JwtGuard

Extends

  • IAuthGuard

Constructors

new JwtGuard()

new JwtGuard(reflector, localGuard): JwtGuard

Parameters

reflector: Reflector

localGuard: LocalGuard

Returns

JwtGuard

Overrides

AuthGuard('jwt').constructor

Defined in

packages/auth/src/guards/jwt.guard.ts:10

Methods

canActivate()

canActivate(context): boolean | Promise<boolean> | Observable<boolean>

Parameters

context: ExecutionContext

Current execution context. Provides access to details about the current request pipeline.

Returns

boolean | Promise<boolean> | Observable<boolean>

Value indicating whether or not the current request is allowed to proceed.

Overrides

AuthGuard('jwt').canActivate

Defined in

packages/auth/src/guards/jwt.guard.ts:16

Clone this wiki locally