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.

Steps
- On the Recovery codes screen, choose Copy all for a trusted password manager or Download for the file named dosya-recovery-codes.txt.
- Keep the set outside the phone running your authenticator. A recovery copy on the same lost device does not help.
- At login, select Use a recovery code instead, enter one value, and choose Use recovery code. Letter case, spaces, and hyphens are normalized.
- After use, the server records that code as spent. The settings row reports how many of the original ten remain.
- If any copy is exposed or the count is too low, choose Regenerate codes. Enter the current password and select Regenerate.
- Regeneration deletes every old code before issuing ten replacements. The warning This invalidates your existing codes is literal and irreversible.
- If the account has no password, set one first; the regeneration control is disabled because password confirmation is required.

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.
Related guides
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.