Documentation Index
Fetch the complete documentation index at: https://docs.magic.link/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This feature requires two prerequisites:-
The primary login factor is an email (this includes
loginWithMagicLinkandloginWithEmailOTPimplementations) - 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.