Store two-factor recovery codes

Store all ten Dosya recovery codes offline, understand single-use behavior, and regenerate them safely when any copy may be exposed or lost.

Last reviewed

Authenticator enrollment displays 10 recovery codes in XXXX-XXXX form. Dosya shows the plaintext set in that response and stores hashes; each matching code can complete only one login.

Recovery-code storage map from the ten-code screen through Copy all or Download, one-time use, and Regenerate codes.
The recovery flow keeps codes away from the authenticator phone and shows that regeneration invalidates every earlier value. Open full-size screenshot.

Steps

  1. On the Recovery codes screen, choose Copy all for a trusted password manager or Download for the file named dosya-recovery-codes.txt.
  2. Keep the set outside the phone running your authenticator. A recovery copy on the same lost device does not help.
  3. At login, select Use a recovery code instead, enter one value, and choose Use recovery code. Letter case, spaces, and hyphens are normalized.
  4. After use, the server records that code as spent. The settings row reports how many of the original ten remain.
  5. If any copy is exposed or the count is too low, choose Regenerate codes. Enter the current password and select Regenerate.
  6. Regeneration deletes every old code before issuing ten replacements. The warning This invalidates your existing codes is literal and irreversible.
  7. If the account has no password, set one first; the regeneration control is disabled because password confirmation is required.
Password and two-factor auth screen before enrollment, showing Not enabled for Authenticator and the Enable authenticator button.
The screenshot displays Password, Two-factor authentication, and the starting Authenticator row with its green Enable authenticator control. Open full-size screenshot.

Missing password input shows Password required — Enter your current password to continue. A bad password returns Incorrect password. Recovery-code regeneration works only for authenticator-based 2FA.

Expected result

You hold a separate, protected copy of the current ten-code set and can identify how many remain. After regeneration, no old recovery code can authenticate, and a mandatory security notice records the replacement.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.