Help topics

Help · Guide

Recover a lost passkey

Use recovery when a person has lost the passkey they sign in to Provenance with. A code goes to an email or phone they confirmed earlier, and after a 24-hour wait they create a new passkey. During the wait, every other device and contact can cancel it.

Before you begin: the person needs a confirmed contact. Without one, recovery isn't possible, and the home says so when they have one passkey and no contact.

  1. Code
    to a confirmed contact
  2. 24-hour wait
    anyone can cancel
  3. New passkey
    7 days of restrictions

1. Add a contact ahead of time

In Security (/me/security) → Recovery contacts, the person adds an email or a phone in E.164 form, and confirms it with the 6-digit code it receives. A code works for 10 minutes; five wrong codes lock it, and the person asks for a new one. The invite email they proved when they first accepted an invite is already a contact.

2. Ask for a code

From Lost your passkey? on the sign-in screen, the person enters that contact. POST /v1/personal/recoveries sends the code and answers the same way whether or not the contact belongs to anyone:

curl -s -X POST $PROVENANCE_API/v1/personal/recoveries \
  -H "Content-Type: application/json" \
  -d '{ "contact": "maya@person.example" }'
{
  "object": "person_recovery_start",
  "status": "code_sent",
  "message": "If that contact belongs to a Provenance account, a code is on its way."
}

3. Confirm the code and wait 24 hours

POST /v1/personal/recoveries/verify starts the wait and returns a recovery_token and ready_at, 24 hours later. Right away, every installed home gets a push and every other confirmed contact gets a message: "Someone is recovering your Provenance account. Cancel it."

Who can cancelHow
Any signed-in homeThe banner in the home, or POST /v1/personal/recoveries/{id}/cancel
Any other contact or installed homeThe link in the message, which opens a confirm page and calls POST /v1/personal/recoveries/cancel

One cancel ends the recovery for good. The person starts again if it was them.

4. Create a new passkey

After ready_at, POST /v1/personal/recoveries/complete registers a new passkey and signs the person in on that device. Their other passkeys keep working until they remove them.

For the next 7 days:

  • limits can't be raised and rules can only get stricter;
  • new network permissions can't be granted;
  • batch approval is off, so each request is approved on its own.

Everything the person already allowed keeps working.

Errors you might see

CodeWhat to do
person_code_invalidCheck the code, or ask for a new one.
person_code_lockedAsk for a new code.
person_recovery_not_readyCome back after ready_at.
person_recovery_closedThe recovery was cancelled, finished or expired. Start a new one.
person_recently_recoveredWait until restricted_until, or approve each request on its own.

See also