Class MFATicket

MFA Ticket

Constructors

  • Construct MFA Ticket

    Parameters

    • client: Client

      Client

    • ticket: {
          _id: string;
          account_id: string;
          authorised: boolean;
          last_totp_code?: null | string;
          token: string;
          validated: boolean;
      }

      Ticket

      • _id: string

        Unique Id

      • account_id: string

        Account Id

      • authorised: boolean

        Whether this ticket is authorised (can be used to log a user in)

      • Optionallast_totp_code?: null | string

        TOTP code at time of ticket creation

      • token: string

        Unique Token

      • validated: boolean

        Whether this ticket has been validated (can be used for account actions)

    • mutate: SetStoreFunction<
          {
              email_mfa: boolean;
              email_otp: boolean;
              recovery_active: boolean;
              security_key_mfa: boolean;
              totp_mfa: boolean;
              trusted_handover: boolean;
          },
      >

      Mutate the store

    Returns MFATicket

Accessors

Methods

  • Disable authenticator

    Returns Promise<void>

  • Fetch recovery codes

    Returns Promise<string[]>

    List of codes

  • Generate new authenticator secret

    Returns Promise<string>

    Secret

  • Generate new set of recovery codes

    Returns Promise<string[]>

    List of codes

MMNEPVFCICPMFPCPTTAAATR