Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Passkeys and WebAuthn: how passwordless login works

Passkeys replace passwords with public-key credentials. To the user, signing in may look like unlocking a device with a fingerprint, face recognition or PIN, but the website does not receive biometric data. The server stores a public key and credential metadata, while the private key remains with the authenticator or passkey provider. WebAuthn is the standard web API, while a passkey is a FIDO credential used for a passwordless sign-in experience.

Published Written by Reading time 21 min read
On this page Contents: quick navigation between sections

Passkey, WebAuthn and FIDO2 are not the same thing

TermMeaning
WebAuthnW3C API and standard for public-key credentials on the web
CTAPProtocol between a client platform and external authenticator
FIDO2Standards family including WebAuthn and CTAP
PasskeyFIDO 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

TypeWhere the credential livesSyncExample
Synced passkeyWith a passkey provider and the user's devicesYes, depending on providerGoogle Password Manager, iCloud Keychain
Device-bound passkeyOn one device or authenticatorNoWindows 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

userVerificationMeaning
requiredThe ceremony fails without user verification
preferredVerification is preferred but absence need not fail the ceremony
discouragedThe 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.

Passkeys are not merely a more convenient sign-in form. They change the security model: the server no longer stores a secret that users type across websites, and each credential is scoped to a specific RP ID. Properly implemented WebAuthn reduces phishing and password-breach risk, but it still requires a carefully designed credential lifecycle: multiple passkeys per account, recovery, credential removal, lost-device handling and secure fallback. A good rollout is therefore a redesign of authentication, not just a new sign-in button.

Passkeys WebAuthn FIDO2 Passwordless Authentication Security Public Key Credentials Phishing Resistance CTAP Identity

Frequently asked questions

Is a passkey the same thing as WebAuthn?

No. WebAuthn is a standard and API. A passkey is a FIDO credential commonly used through WebAuthn on the web. [2][3]

Does a passkey contain my biometric data?

No. FIDO Alliance states that biometric processing stays on the device and is not sent to the server. [3]

What does the server store instead of a password?

The server stores the public key and credential metadata. The private key remains with the authenticator or passkey provider. [4][5]

Why are passkeys phishing-resistant?

The credential is bound to an RP ID and can only be used in the matching domain context validated by the client and authenticator. [2][4]

Must a passkey be synchronized?

No. FIDO distinguishes synced and device-bound passkeys. [3]

What happens when I replace my phone?

A synced passkey can become available on the new device through the same provider. A device-bound passkey requires another registered credential or access path. [3][10]

Can users sign in without typing a username?

Yes. Discoverable credentials can be found using the RP ID without sending allowCredentials. [2][11]

Can passkeys coexist with passwords?

Yes. Apple and MDN describe deployments where passkeys work alongside passwords, including autofill and conditional UI. [8][11]

Can the challenge be constant?

No. It protects against replay and should be unique and cryptographically random for each authentication attempt. [6]

Is verifying the signature enough?

No. The server should also verify expected challenge, origin, RP ID and required user-presence or user-verification flags. [2][6]

Is WebAuthn Level 3 a W3C standard now?

Yes. Level 3 became a W3C Recommendation on August 25, 2026. [1]

Do passkeys eliminate account recovery problems?

No. Sync can simplify access on new devices, but the application still needs secure account recovery and credential management. [3][10]

Sources and references

  1. W3C, Web Authentication Level 3 is a Recommendation↩1↩2
  2. W3C, Web Authentication: An API for accessing Public Key Credentials Level 3↩1↩2↩3↩4↩5↩6↩7↩8↩9↩10↩11↩12↩13↩14↩15↩16↩17
  3. FIDO Alliance, Passkeys↩1↩2↩3↩4↩5↩6↩7↩8↩9↩10↩11
  4. Google for Developers, Passkeys↩1↩2↩3↩4↩5↩6↩7
  5. Google for Developers, Server-side passkey registration↩1↩2↩3↩4↩5↩6
  6. Google for Developers, Server-side passkey authentication↩1↩2↩3↩4↩5↩6↩7↩8↩9
  7. Google for Developers, Passkeys developer guide for relying parties↩
  8. Apple Developer, Passkeys overview↩1↩2↩3
  9. Apple Developer Documentation, Supporting passkeys↩
  10. Microsoft Learn, Register a Microsoft Entra passkey on Windows↩1↩2↩3↩4
  11. MDN Web Docs, Web Authentication API↩1↩2↩3↩4
  12. MDN Web Docs, Passkeys↩

Was this helpful?

Get new articles by email

One short email per new Learning article. No spam, unsubscribe in one click.

We only use your email to send new articles. No third-party sharing.

Back to Learning