Recovery Phrase
UniAuth provides a server-backed BIP-39-derived recovery credential. A configured phrase can replace the password without email delivery, but recovery still depends on the UniAuth service, the current account email, stored verifier state, policy, and rate limits.
What is a Recovery Phrase?
A recovery phrase (also known as a seed phrase or mnemonic) is an ordered list of common English words selected from the BIP-39 wordlist (2,048 words). The words and optional passphrase derive a verifier that can satisfy this account's recovery-phrase proof when submitted with the current email.
The server generates a 12- or 24-word English mnemonic and returns it once in the setup response. UniAuth persists derived verifier material and, during staged setup, a hashed confirmation capability; it does not persist the raw phrase or passphrase.
Word-count Options
Choose one of two source-entropy sizes; neither option is a certification or blanket security guarantee:
| Option | Words | Entropy | Boundary |
|---|---|---|---|
| 12-word option | 12 words | 128-bit | Encodes 128 bits of source entropy; effective security also depends on generation, storage, derivation, account policy, and handling. |
| 24-word option | 24 words | 256-bit | Encodes 256 bits of source entropy; no post-quantum certification or blanket quantum-resistance claim is made. |
Word count changes source entropy only. It does not make the server-backed recovery transaction offline, independently assured, or immune to implementation and storage failures.
Optional Extra Passphrase
During setup, you may optionally provide an extra passphrase (sometimes informally called the "13th word" or "25th word"). It participates in the BIP-39 seed derivation and changes the stored verifier:
- Someone with only the word list cannot satisfy this recovery-phrase verifier when a passphrase was configured.
- UniAuth does not persist the raw passphrase in this route; it is still present in the client request and process memory during use, and you choose how to retain it.
- If you set a passphrase during setup, you must provide the exact same passphrase during recovery.
- If the exact passphrase is unavailable, this recovery-phrase proof cannot succeed. Other configured sign-in or recovery paths remain separate.
Setting Up a Recovery Phrase
- Navigate toAccount > Security > Recovery Phrase.
- ClickGenerate Recovery Phrase.
- Choose a word count: 12 words (128-bit source entropy) or 24 words (256-bit source entropy; not a certified post-quantum mode).
- Optionally enter an extra passphrase, then provide the current password and complete any required recent step-up.
- The updated account UI requests a staged phrase. The POST response returns the words and a one-time confirmation capability. Save the words before continuing.
- Until the confirmation PATCH succeeds, any previous active phrase remains valid. Closing the staged flow can abandon the new phrase.
- Selecting "I've saved my recovery phrase" submits the confirmation capability; it does not re-enter or verify the words. Test the active phrase separately afterward.
Handling Guidance
Treat the phrase as an account credential
- Choose durable storage. An offline paper copy avoids network exposure but can still be lost, copied, photographed, or taken.
- Understand digital-copy risk. Clipboard, downloaded-file, notes, cloud, email, and password-manager copies inherit the security and sync behavior of those systems.
- Do not disclose it. Treat the phrase and optional passphrase as credentials; do not provide them to support or another party.
- Limit captured copies. Screenshots and photos may be synced or accessed by other software or people.
- Plan for loss. A second securely stored copy can reduce physical-loss risk but increases the number of copies to protect.
- Keep the word order. The sequence matters — a shuffled phrase will not work.
Recovering Your Account
A configured recovery phrase can replace a password without email delivery. The request still needs the current account email and the UniAuth service:
- Open Forgot Password.
- Select theRecovery Phraseoption.
- Enter youremail address.
- Enter yourrecovery phrase wordsin the correct order.
- If you set an extra passphrase during setup, enter it in the passphrasefield.
- Choose a new passwordthat passes the applicable configured strength, breach, and history checks.
- Submit. On an eligible successful commit, UniAuth changes the password, revokes existing sessions and issued or pending credentials, removes classic and push MFA, replaces old backup codes with one new one-use recovery code, and retains passkeys and the recovery phrase. Existing federation and social connections are deactivated, and their provider tokens and authority are revoked; connection rows may remain for a later reconnect. No session is issued; save the returned code and sign in again.
Technical Details
The source uses these concrete derivation and comparison steps; no independent cryptographic certification is implied:
Seed Derivation
The mnemonic words and optional passphrase are combined using PBKDF2-HMAC-SHA512 with 2,048 iterations, following the BIP-39 specification:
seed = PBKDF2(
password: mnemonic_words (space-separated, normalized to NFKD),
salt: "mnemonic" + passphrase,
iterations: 2048,
hash: SHA-512,
keyLength: 64 bytes
)Storage
The derived seed is hashed with SHA-512 before persistence. The active verifier is stored on the user row; a staged setup stores derived verifier material, a digest of the confirmation capability, and an expiry timestamp. Expired staged material is rejected; cleanup timing is not promised. The raw phrase and passphrase are not persisted by this route. No browser or JavaScript memory-zeroization guarantee is made.
stored_hash = SHA-512(seed)Verification
Recovery derives and hashes the submitted words and passphrase, compares the digest in constant time to the stored verifier, then rechecks the current email, phrase, and password-policy authority under the locked mutation. A match alone does not create a session.
Recovery-path Boundaries
| Boundary | Recovery Phrase | Backup Codes | Email Reset |
|---|---|---|---|
| Requires the UniAuth service | Yes | Yes | Yes |
| Proof reuse | Until replaced; requests remain rate- and policy-bounded | No (single use each) | No (single use each) |
| Can proceed without email delivery | Yes | Yes | No |
| Can replace a forgotten password | Yes | No | Yes |
| Extra passphrase layer | Yes | No | No |
| Proof submitted | Current email, phrase, and optional passphrase | Primary credential and one unused backup code | One-use, one-hour email reset link |
These paths are not interchangeable: a recovery phrase can replace the password and resets classic and push MFA; a backup code replaces only the second-factor proof after the primary credential; an email reset uses one delivered link and retains the separate recovery phrase and MFA enrollment.