Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace twoFA

Index

Functions

  • Changes the 2FA settings of the logged in user. Note that this method may be incredibly slow depending on the prime numbers that must be used during the process to make sure that everything is safe.

    Has no effect if both current and new password are omitted.

    throws

    this method can throw: "PASSWORD_HASH_INVALID" if you entered a wrong password (or set it to undefined). "EMAIL_INVALID" if the entered email is wrong "EMAIL_HASH_EXPIRED" if the user took too long to verify their email

    Parameters

    Returns Promise<void>

    Promise

Generated using TypeDoc