Passkey, WebAuthn and FIDO2 are not the same thing
| Term | Meaning |
|---|---|
| WebAuthn | W3C API and standard for public-key credentials on the web |
| CTAP | Protocol between a client platform and external authenticator |
| FIDO2 | Standards family including WebAuthn and CTAP |
| Passkey | FIDO credential used for passwordless authentication |
WebAuthn is the W3C standard that defines an API for creating and using public-key credentials in web applications. WebAuthn Level 3 became a W3C Recommendation on August 25, 2026. [1][2]
A passkey is not a separate protocol replacing WebAuthn. FIDO Alliance describes passkeys as FIDO credentials for passwordless authentication using FIDO2 standards, especially WebAuthn and CTAP. [3]
On the web, a Relying Party uses WebAuthn while the browser, operating system and authenticator mediate access to the credential.
How passkey cryptography works
During registration, the authenticator generates a public-private key pair for the account and Relying Party. The public key is sent to the service while the private key stays with the authenticator or passkey provider. [2][4][9]
During authentication, the server sends a random challenge. The authenticator signs data containing that challenge and WebAuthn context, and the server verifies the signature with the stored public key. [6]
Stealing a database of public keys does not let an attacker derive the corresponding private keys. [4]
Why passkeys resist phishing
A public-key credential is scoped to a specific Relying Party ID. The client verifies that the origin is within the RP ID scope, and the authenticator only uses a credential for the matching RP ID. [2]
Google and Apple describe this binding as the basis of passkey phishing resistance: a credential created for the legitimate site is not usable on a fraudulent domain. [4][8]
This differs from passwords, which users can manually type into a phishing site.
Biometrics are not sent to the server
A passkey can be unlocked with biometrics, a PIN, a pattern or another local user-verification mechanism. FIDO Alliance explicitly states that biometric processing remains on the device. [3]
The service receives cryptographic proof of authentication, not a fingerprint or face image.
WebAuthn distinguishes user presence from user verification. A Relying Party can require verification by setting userVerification to required. [2]
Passkey registration step by step
The server creates PublicKeyCredentialCreationOptions, including a challenge, RP ID, user data, cryptographic algorithms and optional excludeCredentials. [5]
The client invokes WebAuthn, the user authorizes credential creation and the authenticator creates the key pair. [2][5]
The server must verify the response, challenge, origin, RP ID, required flags and cryptographic parameters, then store the credential ID and public key. [2][5]
Passkey authentication step by step
For authentication, the server creates a fresh cryptographically random challenge and sends credential request options to the client. Google recommends that the challenge be unique to the sign-in attempt and stored in the user's session. [6]
The authenticator signs the challenge in the RP context. The server verifies expected challenge, origin, RP ID, user-presence or user-verification flags and the signature. [6]
Only after a valid assertion should the application create an authenticated session.
Discoverable credentials and username-less sign-in
WebAuthn Level 3 defines discoverable credentials as credentials that can be found without the Relying Party providing credential IDs. [2]
When allowCredentials is empty or omitted, the client can present credentials for the RP ID and the account can be identified from userHandle or credential ID. [2][6]
This enables a true username-less flow where the user selects an account without typing a username first.
Conditional UI and passkeys in autofill
WebAuthn supports conditional mediation. The browser can wait for the user to interact with a sign-in field and then show passkeys together with other autofill suggestions. [11]
Only discoverable credentials participate in this flow because the browser must find applicable credentials without being given their IDs. [11]
This lets sites introduce passkeys alongside passwords without forcing a separate sign-in screen.
Synced passkeys and device-bound passkeys
| Type | Where the credential lives | Sync | Example |
|---|---|---|---|
| Synced passkey | With a passkey provider and the user's devices | Yes, depending on provider | Google Password Manager, iCloud Keychain |
| Device-bound passkey | On one device or authenticator | No | Windows Hello container, hardware security key |
FIDO Alliance distinguishes synced passkeys, which can be synchronized by a passkey provider, from device-bound passkeys that remain tied to one device or hardware authenticator. [3]
Google Password Manager and iCloud Keychain are examples of passkey providers that synchronize credentials across a user's devices. [4][8]
Microsoft also documents a device-bound Microsoft Entra passkey stored in the local Windows Hello container; it does not sync and requires separate registration on each device. [10]
Cross-device authentication
When a passkey is not locally available on a computer, the user can in supported scenarios use a passkey on a phone to sign in on another device. FIDO calls this cross-device authentication. [3]
Google also documents using a passkey on a phone to sign in on a laptop when the devices are appropriately connected and the user approves the operation. [4]
Cross-device authentication does not copy the private key into the website. The device that owns the credential still authorizes the cryptographic operation.
RP ID, origin and subdomains
RP ID is the domain-based identifier of the Relying Party. WebAuthn requires the client to validate that the current origin matches the scope of that RP ID. [2]
This has architectural consequences. If multiple subdomains should share credentials, the RP ID must be planned before rollout and configured according to WebAuthn rules.
RP ID is not an arbitrary configuration string. It is part of the cryptographic scope of the credential.
User verification: required, preferred and discouraged
| userVerification | Meaning |
|---|---|
| required | The ceremony fails without user verification |
| preferred | Verification is preferred but absence need not fail the ceremony |
| discouraged | The RP prefers not to perform user verification |
WebAuthn defines required, preferred and discouraged values for userVerification. [2]
required means the ceremony must fail if user verification cannot be performed. preferred requests verification where possible but does not necessarily fail without it. [2]
The server should not trust only the option sent to the client. If policy requires user verification, the server must check the UV flag in the returned authenticator data. [2][6]
Recovery and multiple passkeys per account
Synced passkeys can become available on a new device after the user signs in to the same passkey provider, which FIDO lists as one benefit of synchronization. [3]
A device-bound credential may require a separate registration on another device, so an account should support more than one credential. [3][10]
Recovery must be designed together with passkeys. If the only recovery path is a weak password or easily hijacked channel, the overall account security is limited by that fallback.
What the server should store
The server should store at least the credential ID, public key and the association between that credential and the account. WebAuthn server libraries commonly retain additional data required for verification and credential management. [5][6]
For discoverable credentials, userHandle should be an opaque identifier and the WebAuthn specification says it must not contain personally identifying information such as a username or email address. [2]
Passkeys do not remove the need for an application session after authentication. WebAuthn establishes authentication; the application still manages its own session and authorization.
A practical passkey rollout plan
A safe rollout is usually gradual: let users add a passkey to an existing account, add WebAuthn sign-in and conditional UI, and only then consider fully passwordless flows for users with adequate recovery.
Use a mature server-side WebAuthn library rather than hand-implementing binary encoding and cryptographic verification. Google's implementation guidance explicitly recommends server libraries. [5][6]
After launch, monitor registration success, sign-in success, platform-specific errors, credentials per account and fallback usage.
Google's guide for Relying Parties also covers platform versus cross-platform authenticators and discoverable credentials [7], while MDN documents passkeys and conditional creation in WebAuthn. [12]
- Use HTTPS and a correctly configured RP ID.
- Generate a unique cryptographically random challenge for every ceremony.
- Verify challenge, origin, RP ID, signature and required flags on the server.
- Allow users to register more than one passkey.
- Do not store biometric data or attempt to send it to the backend.
- Consider discoverable credentials and conditional UI for a smoother sign-in experience.
- Design recovery before removing passwords.
- Provide a user-facing screen to name, review and remove registered credentials.
