Passkeys replace a shared password with a public-key credential. A site keeps the public key; the authenticator proves possession of the corresponding private key during sign-in. The credential is scoped to the site, which makes passkeys resistant to common phishing and password-reuse attacks. They still depend on sound enrollment, recovery, and fallback flows.
The explanation here follows the WebAuthn standard and the FIDO Alliance’s passkey overview.
What a passkey actually is
When you register, the authenticator creates a public-key credential for that site. The site stores the public key and credential data; the authenticator uses the private key to sign a fresh challenge at login.
- The private key is not sent to the site. Depending on the kind of passkey, it may be bound to one authenticator or securely synced by a passkey provider.
- The public key is registered with the site. By itself, it cannot sign a login challenge.
At sign-in, the site sends a challenge. The authenticator signs it after user verification, and the site checks the signature. No password is typed or transmitted during that ceremony. A stolen database can still expose account data and public keys, but those keys do not function like reusable passwords.
The useful difference from a password is that the browser and authenticator check which site is requesting the credential. A lookalike domain cannot normally use a credential registered for the real one.
Why passwords were doomed from the start
Passwords create several familiar failure modes:
- Reuse: a password exposed at one service may be tried at another.
- Phishing: people can be persuaded to enter a valid password or one-time code on a fake site.
- Storage: services must protect password verifiers and account recovery data.
Passkeys reduce these risks, but they do not remove every route to account takeover. A compromised device or passkey provider, a weak recovery process, or a password fallback can still undermine the sign-in flow.
How the login actually works
Registration:
- The authenticator creates a credential scoped to the relying party.
- The site stores the credential’s public key and registration data.
- The authenticator retains the private credential; a passkey provider may sync it across the user’s devices.
Login:
- The site sends a fresh challenge to the browser.
- The user verifies locally, for example with a device PIN or biometric.
- The authenticator signs the challenge.
- The site validates the response and the expected origin.
This is why passkeys are described as phishing-resistant. The protection depends on correct server-side WebAuthn verification and on the rest of the account flow.
The device-loss question, answered honestly
The recovery answer depends on how the passkey was created and stored. Some passkeys are device-bound; others are synced through a provider account. Sync helps with device replacement, but it makes the provider account and its recovery process part of the security model.
An app still needs to plan for a user who loses access to a device or provider account. That means deciding which recovery methods are acceptable for the account’s risk level, and making sure weaker fallbacks do not quietly become the easiest way in.
What this means if you build software
For an app team, adding passkeys means implementing more than a button:
- Store and associate public credentials with the right account.
- Generate and verify challenges correctly, including origin and relying-party checks.
- Design enrollment, revocation, device changes, recovery, and any password fallback.
Libraries can handle parts of the WebAuthn ceremony, but the product still owns account linking and recovery decisions. Passkeys may replace passwords for sign-in; they do not remove the need to recover accounts or protect sessions.
Where this actually goes
I see passkeys as a meaningful improvement to the sign-in ceremony, especially against phishing and password reuse. Whether they improve the whole account depends on how a service handles recovery, device loss, and fallback authentication. Those parts deserve the same design attention as the login screen.