Synced passkeys, cross-device sign-in, and recovery
A passkey is a key pairA private key and a public key generated together and mathematically linked. The private key creates signatures and the public key checks them, but the private key cannot practically be worked out from the public one., but people sign in from more than one device and sometimes lose one. Passkey providers copy passkeys between a person's devices, a phone can sign for a computer that holds no passkey, and the relying partyAn application that accepts and relies on a sign-in from another service, the name used in OpenID Connect and for passkeys. SAML calls the same role a service provider. has to keep its own records in step with both.
A passkey on every device
Ava creates a passkey for Lab Photos on her phone, in a registration like the one in The registration ceremony. That evening she opens https://auth.photos.example on her laptop, and the passkey is already there: same account, same name, no second registration. The password manager built into her phone and laptop copied it.
That password manager is Ava's passkey provider, the software that creates, stores and offers her passkeys. A synced passkey is one the provider keeps in Ava's account with the provider and installs on every device she signs in to there. The copy on the provider's servers is encrypted end to end: it is encrypted with keys that only Ava's own devices hold, so the provider stores the passkey but cannot read the private keyThe half of a key pair that its owner keeps to themselves and uses to create signatures or decrypt data. Anyone who obtains it can act as its owner. or sign with it. Every device that holds the passkey can sign for Lab Photos. A device-bound credential, such as one on a hardware security keyA small physical device, plugged in or held near a phone or computer, that holds credentials and uses them to prove you have it. It is an authenticator that resists phishing., never leaves the authenticatorSomething a person controls and uses to prove control of an account, such as a memorized password, an app that generates one-time codes, or a security key. It counts only after it has been registered to that account. that made it, the distinction Security keys, passkeys, and biometrics introduced.
Lab Photos sees none of this directly. It registered one credential ID and one public keyThe half of a key pair that can be shared freely. It checks signatures made with the matching private key and can encrypt data that only that private key can decrypt., and any device holding the matching private key produces assertions it accepts. What changes is where the risk sits, and that is mostly a question of recovery. If Ava loses her phone, she loses nothing at Lab Photos: her laptop still has the passkey, and a new phone gets it back when she signs in to her provider account. Had her only passkey been device-bound, losing that device would leave her with whatever other method her account still has. In exchange, anyone who takes over Ava's provider account could put her passkeys on a device of their own, so the provider's own sign-in and recovery become part of how well her Lab Photos account is protected, as Enrollment, replacement, and recovery described.
Reading the backup flags
The two backup bits in the authenticator data, BE (backup eligible) and BS (backup state), are the only signal a relying party gets about syncing. They come in four combinations:
| BE | BS | What the authenticator is saying |
|---|---|---|
| 0 | 0 | A single-device credential. It can never be backed up. |
| 1 | 0 | The credential may be backed up, but is not at the moment. |
| 1 | 1 | The credential is backed up, so it may exist on other devices. |
| 0 | 1 | Not allowed. A relying party refuses it. |
BE is fixed when the credential is made and must not change afterward. BS can change, for example when Ava turns syncing on or off, so Lab Photos saves the latest value after each sign-in. Ava's phone passkey registered with flags 0x5d: UP, UV, BE, BS and AT. When she signs in with it, the flags read 0x1d, the same bits without AT, because a sign-in carries no new credential data. Its signCount usually stays at zero: one key copied to several devices cannot keep a single counter in order, so providers of synced passkeys don't keep one.
The flags describe the credential as the authenticator reports it. With attestationA signed statement about a device or running process from a party the verifier already trusts, rather than from the thing itself. In WebAuthn, an authenticator's maker vouches for its model when a passkey is registered; for workloads, a cloud platform or orchestrator vouches for a running process before it receives a credential. set to none, as most synced passkeys are registered, nothing vouches for that report. They are still useful for decisions like this one: if Ava's only passkey had BE clear, Lab Photos could suggest she add a second way in, because losing that one device would lock her out. NIST SP 800-63B-4 notes that a credential being eligible for sync does not mean it has been synced, and advises public-facing services not to refuse credentials because BS is set. Authenticator assurance levels explained where NIST places synced passkeys: acceptable at the second assurance levelA published level of confidence for a process such as identity proofing, where each higher level requires stronger evidence and checks. Levels let a claim like "we verified this person" mean the same thing from one service to the next., not at the third, which requires a key that cannot be exported.
Signing in from a nearby phone
Sometimes the passkey is not on the device in front of Ava. She is at a computer in the public library, whose browser has never seen her, and she wants to print an album from Lab Photos. She chooses Sign in with a passkey, picks the option to use a phone or tablet, and the browser shows a QR code. She scans it with her phone, touches the fingerprint reader, and the library computer is signed in. Her passkey never leaves the phone.
This is the hybrid transport, the hybrid value a credential can list among its transports. It is defined in CTAP 2.2, the FIDO Alliance's Client to Authenticator ProtocolAn agreed set of rules for the messages two systems exchange and what each message means. HTTP, OAuth 2.0, OpenID Connect and SAML are all protocols., which is how a browser talks to an authenticator that is not built into the same device. The QR code carries a one-time public key and secret made by the computer. The phone answers with a Bluetooth Low Energy advertisement, a short radio broadcast encrypted with that secret, which the computer must hear. The advertisement names a tunnel service, a relay on the internet, and the two devices build an encrypted channel through it with keys derived from the QR code and the advertisement. The relay passes messages along but cannot read them.
The Bluetooth step is what makes hybrid resist remote phishingTricking someone, usually with a message and a look-alike sign-in page, into handing over the evidence that opens their account, such as a password or a one-time code.. Suppose a page at https://photos-login.example shows Ava a QR code that a distant computer produced. Her phone sends its advertisement, but that computer is too far away to hear it, so no tunnel is built, no request reaches the phone and nothing is signed.
Lab Photos receives an ordinary assertion. The origin in clientDataJSON is the one the library computer's browser saw, because that browser builds the client data, so the binding to the website holds. Hybrid sign-in is also different from both syncing and registering: nothing is copied to the library computer and no credential is added to Ava's account. After the sign-in, many sites offer to create a passkey on the device in use. On a shared computer Ava should decline, because accepting would be a new registration with its own credential ID, left behind on a computer other people use.
One credential, several websites
A credential belongs to one relying party ID. Lab Photos registered Ava's passkey under photos.example, so pages on auth.photos.example, share.photos.example and every other subdomain of photos.example can use it. Lab Photos' print shop at https://www.photos-prints.example cannot, because it is a different registrable domain, and no choice of relying party ID crosses from one registrable domain to another.
Related origin requests, added in WebAuthnThe W3C browser API that lets a website register and use public-key credentials, such as passkeys and security keys. The site sends a challenge, and the authenticator signs it with a key scoped to that site. Level 3, solve this. Lab Photos publishes a list of the other origins it allows at https://photos.example/.well-known/webauthn:
{
"origins": [
"https://auth.photos.example",
"https://www.photos-prints.example"
]
}When a page at https://www.photos-prints.example asks for a credential with rpId set to photos.example, the browser sees that the ID does not fit the page's origin, fetches that file from the relying party ID's own host, and allows the request only if the page's origin is listed. The decision stays with whoever controls photos.example, which keeps the binding to the website meaningful: a site cannot claim another site's credentials by publishing a file of its own. The origin in clientDataJSON is still https://www.photos-prints.example, so Lab Photos' server must also list it among the origins it accepts.
Making passkeys easy to use
Passkeys only help the people who actually create and use them, so how Lab Photos introduces them matters as much as the cryptography. A few browser features carry most of the work.
Conditional mediation puts passkeys into the browser's autofill. The sign-in page marks its username field with autocomplete="username webauthn" and calls navigator.credentials.get() with mediation: "conditional" as soon as the page loads. Nothing appears until Ava focuses the field; then her passkeys are listed beside her saved passwords, and choosing one signs her in. People who have no passkey see an ordinary form, so one page serves both.
Conditional create upgrades people without interrupting them. Right after Ava signs in with a password her password manager filled, the page can call navigator.credentials.create() with mediation: "conditional". If the same password manager supports it, it creates a passkey quietly and tells her afterward. If not, nothing happens. An explicit prompt after sign-in, such as "Sign in faster next time with a passkey", does the same job for everyone else.
A good rollout also covers the edges. The security page lists each passkey with a recognizable name, often looked up from the provider's AAGUID, plus where it was created and when it was last used, so Ava can tell which one to remove after losing a device. People without a suitable device keep another way to sign in, such as a security key or a password with a second step. A service that later turns passwords off sets a deadline and makes sure a supported recovery path exists first. The hints member can steer someone who manages Lab Photos accounts toward a security-key and everyone else toward client-device.
Keeping the provider in step
When Ava removes a passkey from her Lab Photos security page, perhaps because it lived on a phone she lost, Lab Photos deletes its credential record, and that passkey can no longer sign her in. Her password manager does not know that. It keeps offering the passkey on every device that syncs it, and when she picks it the sign-in fails, which is confusing. The reverse also happens: deleting the passkey in her password manager leaves Lab Photos' record in place.
The Signal API, new in WebAuthn Level 3, lets the relying party tell the provider what it knows, without learning anything about the provider in return:
| Call | When Lab Photos uses it |
|---|---|
PublicKeyCredential.signalUnknownCredential() | A sign-in presented a credential ID it has no record of, so the provider can hide or remove that passkey. |
PublicKeyCredential.signalAllAcceptedCredentials() | After Ava signs in, with the full list of her credential IDs, so the provider can drop any others it holds for her account. |
PublicKeyCredential.signalCurrentUserDetails() | After she changes her name or address, so the passkey's labels stay current. |
The signals are hints the provider may act on, not commands, and they never undo anything on Lab Photos' side. Removing the credential record at the relying party is what actually stops a passkey working there, whichever devices still hold a copy and whether or not the provider was ever told.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Compare synced and device-bound passkeys, then remove one the provider keepsSign in with a synced passkey, from your phone if you can, compare its backup flags with a device-bound key, then remove it at the relying party and see the provider's copy refused.