Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SmsSender<Account>

Sender used in order to notify client via sms about different events happened in the authentication process and account management.

Type parameters

Hierarchy

  • SmsSender

Methods

sendForgotPasswordToken

  • sendForgotPasswordToken(account: Account, token: string, isEncrypted: boolean): Promise<void>
  • Send forgot password token to user after he started account recovery procedure.

    Parameters

    • account: Account

      Account that needs to be recovered.

    • token: string

      Forgot password token.

    • isEncrypted: boolean

      Whether token was encrypted with AccountModel.pubKey.

    Returns Promise<void>