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:9open in new window

Methods

canActivate

canActivate(context): Promise<boolean>

Parameters

NameType
contextExecutionContext

Returns

Promise<boolean>

Implementation of

CanActivate.canActivate

Defined in

lib/src/authentication/authentication.guard.ts:14open in new window