Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SmsTwoFactorAuthStrategy

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

Hierarchy

  • SmsTwoFactorAuthStrategy

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>