Skip to content

backends-web-backend


Class: JwtAuthGuard

Defined in: backends/web-backend/src/auth/jwt-auth.guard.ts:11

Implements

  • CanActivate

Constructors

Constructor

new JwtAuthGuard(jwt, sessions): JwtAuthGuard

Defined in: backends/web-backend/src/auth/jwt-auth.guard.ts:12

Parameters

jwt

JwtService

sessions

SessionsService

Returns

JwtAuthGuard

Methods

canActivate()

canActivate(ctx): Promise<boolean>

Defined in: backends/web-backend/src/auth/jwt-auth.guard.ts:17

Parameters

ctx

ExecutionContext

Returns

Promise<boolean>

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

Implementation of

CanActivate.canActivate