Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

Synced passkeys, cross-device sign-in, and recovery

A passkey is a key pair, 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 party 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 key 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 key, never leaves the authenticator 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 key, 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:

BEBSWhat the authenticator is saying
00A single-device credential. It can never be backed up.
10The credential may be backed up, but is not at the moment.
11The credential is backed up, so it may exist on other devices.
01Not 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 attestation 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 level, 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 Protocol, 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 phishing. 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.

Cross-device sign-in over the hybrid transport. Proximity is proven over Bluetooth, the messages travel through an encrypted tunnel, and the passkey stays on the phone. A QR code relayed from far away goes no further.

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 WebAuthn Level 3, solve this. Lab Photos publishes a list of the other origins it allows at https://photos.example/.well-known/webauthn:

json
{
  "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:

CallWhen 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.

Ava removes a passkey from her Lab Photos security page after losing her phone. Her password manager still offers it on her laptop. What happens when she picks it? 1 of 3

Choose one answer.

A page at photos-login.example shows Ava a QR code produced by a computer far away. She scans it with her phone. Why is nothing signed? 2 of 3

Choose one answer.

Ava's passkey belongs to the relying party ID photos.example. Lab Photos wants it to work on its print shop at https://www.photos-prints.example too. What makes that possible? 3 of 3

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity