What is WebAuthn?
WebAuthn is a W3C web standard that lets websites log users in with public-key credentials, such as passkeys and security keys, instead of passwords.
Also called: Web Authentication API
How it works
When a user registers, their device or security key, called an authenticator, makes a new key pair for that site. The private key stays with the authenticator. The site stores only the public key.
At login, the site sends a random challenge. The authenticator signs it with the private key, usually after the user unlocks it with a PIN, fingerprint or face. The site checks the signature with the stored public key. No shared secret crosses the network.
WebAuthn, FIDO2 and passkeys
WebAuthn is the browser side of FIDO2. The other part, CTAP (Client to Authenticator Protocol), lets the browser talk to external authenticators such as USB or NFC security keys and phones. Together they let one site work with many kinds of authenticator.
A passkey is a WebAuthn credential, often synced across a user's devices by their platform's password manager. Hardware security keys use the same standard with keys that stay on the device.
Why it resists phishing
Each credential is bound to the origin of the site that created it. The browser will not use a credential for a different domain, so a look-alike phishing page cannot get a valid signature, and there is no code for a user to read out or type in.
Because the site holds only public keys, a breach of its database does not expose secrets that work elsewhere. This makes WebAuthn a strong choice for multi-factor authentication and for passwordless login.
Limits to keep in mind
WebAuthn protects the login, not what happens after it. Account recovery, session theft and approvals a user is tricked into are still risks, so teams also watch device, network and behavior signals around sensitive actions.
Related terms
- PasskeyA passkey is a login credential based on public-key cryptography that replaces a password. It is stored on the user's device or password manager and unlocked with a biometric or PIN.
- Multi-factor authentication (MFA)Multi-factor authentication (MFA) requires two or more different kinds of proof to log in or approve an action, such as something you know, something you have, and something you are.
- One-time password (OTP)A one-time password is a short code that is valid for a single login or action, sent by SMS or email or made by an authenticator app, and used as a second factor.
- PhishingPhishing is a scam where attackers pose as a trusted company or person, by email, text, call or fake website, to trick people into sharing credentials, codes or money.
- Account takeover (ATO)Account takeover is when someone other than the owner gains control of a real user's account, usually with stolen credentials, and uses it to steal money, data or rewards.