Recovery codes: restore account access safely after losing an authenticator
Distinguish saved and issued recovery codes, store and use them safely, and understand replacement and verifier safeguards.
A recovery code is a backup secret for regaining an account when another authenticator is unavailable. A saved code is issued in advance and kept by the subscriber; an issued code is sent when recovery starts. Do not infer its delivery channel or strength from the label alone. In NIST SP 800-63B-4, issued-code limits are 10 minutes for text or voice, 24 hours for email, and 21 days for postal mail within the contiguous United States or 30 days outside it. These are NIST guidance limits, not universal service rules. Email recovery codes are a recovery process, distinct from email out-of-band authentication.
NIST does not permit email as an out-of-band authentication channel; email recovery is a separate process.
Beforehand, generate or download codes only from the official account flow. Keep saved codes offline or in a protected record that is not shared or automatically backed up to an uncontrolled account. Do not leave them in plain chat, shared files, or ordinary notes. When recovery is needed, verify the domain and account, enter one matching unused code once, then finish account recovery, bind a new authenticator, and review active sessions and recovery settings. If a code is rejected, check whether it belongs to another account or was consumed or replaced; stop before repeated guessing and use the official recovery route.
NIST does not permit email as an out-of-band authentication channel; email recovery is a separate process.
NISTʼs saved-code guidance for its digital-identity framework calls for at least 64 bits from an approved random-bit generator, secure offline custody, hashed storage with an approved one-way function, attempt throttling, and invalidating the used code and issuing a replacement. Replacement should trigger an account-recovery notice. At NIST AAL2, recovery requires two codes from different methods, one code plus a bound single-factor authenticator, or repeated identity proofing when available. This is framework-specific, not a universal law. Recovery codes are not phishing-resistant MFA; operators should not let weak support checks bypass the recovery controls.
NIST does not permit email as an out-of-band authentication channel; email recovery is a separate process.
References
[NIST SP 800-63B-4 §4.2: Account Recovery Methods](https://pages.nist.gov/800-63-4/sp800-63b.html#account-recovery-methods)
[NIST SP 800-63B-4 §3.1.2: Look-Up Secrets](https://pages.nist.gov/800-63-4/sp800-63b/authenticators/#look-up-secrets)
[OWASP Multifactor Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Multifactor_Authentication_Cheat_Sheet.html)