Skip to content

auth.Class.MockGuard

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

@sclable/nestjs-libs / auth / MockGuard

Class: MockGuard

Extends

  • IAuthGuard

Constructors

new MockGuard()

new MockGuard(...args): MockGuard

Parameters

• ...args: any[]

Returns

MockGuard

Inherited from

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

Defined in

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

Clone this wiki locally