Skip to main content

ServiceAuthGuard

@lowcode/api


Class: ServiceAuthGuard

Defined in: apps/api/src/modules/auth/guards/service-auth.guard.ts:10

Guard для service-токенов (межсервисная аутентификация).

Implements

  • CanActivate

Constructors

Constructor

new ServiceAuthGuard(jwtService, configService): ServiceAuthGuard

Defined in: apps/api/src/modules/auth/guards/service-auth.guard.ts:11

Parameters

jwtService

JwtService

configService

ConfigService

Returns

ServiceAuthGuard

Methods

canActivate()

canActivate(context): Promise<boolean>

Defined in: apps/api/src/modules/auth/guards/service-auth.guard.ts:16

Parameters

context

ExecutionContext

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

Returns

Promise<boolean>

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

Implementation of

CanActivate.canActivate