Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EmailTwoFactorAuthStrategy

Two factor authentication strategy which sends token to user via email.
Generated token is stored in the AuthenticationSession.twoFactorAuthenticationToken property and is valid until AuthenticationSession expires or token is send by client and validated.

Hierarchy

  • EmailTwoFactorAuthStrategy

Implements

Constructors

constructor

Methods

isAuthenticationTokenValid

  • isAuthenticationTokenValid(_account: AccountModel, authenticationContext: AuthenticationContext, authenticationSessionRepositoryHolder: AuthenticationSessionRepositoryHolder): Promise<boolean>

onTwoFactorAuthEnabled

  • onTwoFactorAuthEnabled(): Promise<null>

sendAuthenticationToken

  • sendAuthenticationToken(account: AccountModel, _authenticationContext: AuthenticationContext, authenticationSessionRepositoryHolder: AuthenticationSessionRepositoryHolder): Promise<void>