Skip to content

auth.Class.LocalGuard

Sclable CI edited this page Apr 10, 2026 · 22 revisions

@sclable/nestjs-libs / auth / LocalGuard

Class: LocalGuard

Defined in: packages/auth/src/guards/local.guard.ts:5

Extends

  • IAuthGuard

Constructors

Constructor

new LocalGuard(...args): LocalGuard

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

Parameters

args

...any[]

Returns

LocalGuard

Inherited from

AuthGuard('local').constructor

Methods

canActivate()

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

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

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

Clone this wiki locally