Skip to main content

Account recovery

Account recovery allows users to regain access to their accounts when they forget their passwords. This guide shows how to configure account recovery in your Ory project.

Set up account recovery

Enable and configure account recovery

  1. Log in to your Ory Console
  2. Select your workspace and project
  3. Navigate to AuthenticationAccount recovery
  4. Toggle "Enable account recovery" to on
  5. Click Save
https://console.ory.sh/projects/<id>/authentication/recovery

Account Recovery Settings

Recovery strategy

You can choose between the following recovery strategies:

  • One-time passwords: Sends a one-time code via email
  • Magic link: Sends a recovery link via email
  1. In the Account recovery section
  2. Select the recovery strategy
  3. Click Save
https://console.ory.sh/projects/<id>/authentication/recovery

Multi-factor for Recovery

Initiating account recovery

To start the account recovery flow, send the user to the recovery page:

<a href="$ORY_SDK_URL/self-service/recovery/browser">Recover your account</a>

What users will see

When a user initiates account recovery:

https://console.ory.sh/projects/<id>/authentication/recovery

Account Recovery Page

User flow

  1. They enter their email address on the recovery page
  2. They receive either:
    • A recovery link via email (if using the link method)
    • A one-time code via email (if using the code method)
  3. After clicking the link or entering the code, they're prompted to set a new password
  4. Once completed, they regain access to their account with a new password