Skip to content

How to Sign In with a Recovery Code

Recovery codes are the way back in when the device with the passkey is lost, broken or wiped. Each code works once.

On the My Account login form, under the passkey button, click Lost your device? Use a recovery code. A small form opens. Any username already typed above is copied in.

Type the username or email address, and one code, such as 4Y6V-2BP3. The dash and capitals do not matter. Press Sign in with recovery code.

The recovery code form filled in

A wrong code, or a username that does not exist, gets the same message: “The username or recovery code is not valid.” The form does not tell anyone which accounts exist. Wrong codes count towards the lockout.

The invalid recovery code message

The customer is signed in, and that code is spent. My Account → Passkeys shows one code fewer.

The recovery codes summary with nine codes left

They also get an email, “A recovery code was used to sign in”, with the IP address and time.

The recovery code used email

  • Remove the lost device’s passkey, so whoever has it cannot use it.
  • Add a passkey on the new device.
  • Create new codes when only a few are left. The new set replaces the old one.

See How to Rename, Suspend or Remove a Passkey and How to Create New Recovery Codes.

  • Recovery codes work wherever the passkey button shows, including the WordPress login screen.
  • With Recovery Codes unticked under Security, the link does not show and no codes are handed out.
  • A user who has spent every code and lost every device signs in with their password, or asks you to remove their passkeys if passkey-only sign in is on for their role.