Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

06 Recovery

Recovery gives permission to create a passkey for an existing user. It is not a login. An application chooses its methods; policy can only remove some.

MethodStrength
Another passkeyNot recovery: log in with it
Recovery keyStrong: 256 bits, shown once, stored as a verifier
Approval by tenant ownersStrong, if people check each other by another channel
EmailWeak. MUST NOT be enabled together with e2ee

All methods

  • All sessions and tokens of the user end in the same commit that adds the new passkey.
  • The user gets a notice on every known channel.
  • Other passkeys stay. For 72 hours† a recovered account cannot remove passkeys that are older than the recovery, change its recovery methods or its addresses. A person who lost the mailbox but has a passkey can therefore take the account back.
  • A login with an older passkey in this time can undo the recovery. One commit removes what was added since the recovery: passkeys and their sessions, devices and their tokens, external identities and a recovery key. It also removes every connected-app grant, authorization code and API key. What the caller did to application data, or to other accounts, belongs to the application: the audit log shows it.

Email

  1. A request gives the same answer, after the same time, for known and unknown addresses. A message that cannot be sent is tried five times and then removed: it has a secret.
  2. The account waits 24 hours†. Notices go out at the start. Any logged-in session can cancel.
  3. After the wait, a single-use link allows one passkey registration.

A tenant with stricter rules can require a longer wait or an owner’s approval in addition.

Recovery key

A user signs a server challenge with a key from the recovery key, or opens an envelope with it (e2ee). The server never sees the recovery key. It can be replaced after a fresh login.