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
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.
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