Skip to content

auth.Class.LocalGuard

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

@sclable/nestjs-libs / auth / LocalGuard

Class: LocalGuard

Extends

  • IAuthGuard

Constructors

new LocalGuard()

new LocalGuard(...args): LocalGuard

Parameters

• ...args: any[]

Returns

LocalGuard

Inherited from

AuthGuard('local').constructor

Defined in

node_modules/@nestjs/passport/dist/interfaces/type.interface.d.ts:2

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('local').canActivate

Defined in

packages/auth/src/guards/local.guard.ts:6

Clone this wiki locally