Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
auth.checkRecoveryPassword#d36bf79 code:string = Bool;
Name | Type | Description |
---|---|---|
code | string | Code received via email |
Code | Type | Description |
---|---|---|
400 | CODE_EMPTY | The provided code is empty. |
400 | PASSWORD_RECOVERY_EXPIRED | The recovery code has expired. |
How to login to a user's account if they have enabled 2FA, how to change password.
Request recovery code of a 2FA password, only for accounts with a recovery email configured.
Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.