nestjs-clone-bay docs
GitHub
GitHub
  • Introduction
  • Testing
  • API Reference

Class: AuthenticationGuard

Implements

  • CanActivate

Constructors

constructor

• new AuthenticationGuard(userService, authenticationService): AuthenticationGuard

Parameters

NameType
userServiceUserService
authenticationServiceAuthenticationService

Returns

AuthenticationGuard

Defined in

lib/src/authentication/authentication.guard.ts:9

Methods

canActivate

▸ canActivate(context): Promise<boolean>

Parameters

NameType
contextExecutionContext

Returns

Promise<boolean>

Implementation of

CanActivate.canActivate

Defined in

lib/src/authentication/authentication.guard.ts:14

Edit this page
Last Updated: