auth.checkRecoveryPassword #

Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
auth.checkRecoveryPassword#d36bf79 code:string = Bool;

Parameters #

NameTypeDescription
codestringCode received via email

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CODE_EMPTYThe provided code is empty.
400PASSWORD_RECOVERY_EXPIREDThe recovery code has expired.

Two-factor authentication #

How to login to a user's account if they have enabled 2FA, how to change password.

auth.requestPasswordRecovery #

Request recovery code of a 2FA password, only for accounts with a recovery email configured.

auth.recoverPassword #

Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.