Overview
This feature requires two prerequisites:-
The primary login factor is an email (this includes
loginWithMagicLink
andloginWithEmailOTP
implementations) - The user can prove ownership of a phone number, which will be used as the recovery factor
Compatibility
Account recovery methods are available on the following client-side SDKs:Usage
Enabling Account Recovery

JavaScript
JavaScript
Recover Account

JavaScript
It’s important to note that updating the recovery factor is a security sensitive operation so users will first be prompted to demonstrate account ownership by authenticating their email via a one-time-passcode before they are able to add a recovery phone number.