Glossary
WebAuthn (Web Authentication)
Definition
WebAuthn: Web Authentication, a W3C Recommendation: the browser API that lets websites create and use strong, scoped, public-key credentials (passkeys and security keys) to register and authenticate users. With CTAP it forms FIDO2.
Also known asWeb AuthenticationWeb Authentication APIW3C WebAuthn
In short
WebAuthn (Web Authentication) is the W3C standard browser API that lets a website register and sign in users with public-key credentials, such as passkeys and security keys. The site stores only a public key; at sign-in the authenticator signs a fresh challenge. Each credential is scoped to one site, which makes WebAuthn resistant to phishing. It is the web half of FIDO2.
Key takeaways
- WebAuthn has two main calls, navigator.credentials.create() to register and navigator.credentials.get() to sign in.
- The website, called the Relying Party, keeps only public keys, so a database leak holds nothing that signs in.
- Credentials are scoped to the Relying Party, and browsers enforce it, so a fake domain can't use them.
- The server must check the challenge, origin and signature every time.
- A weaker fallback, like SMS or email codes, becomes the attacker's way in.
Last reviewed 4 December 2026 by Foxcolab Team
WebAuthn, short for Web Authentication, is the W3C browser API that lets websites register and sign in users with public-key credentials, such as passkeys and security keys, instead of passwords. The Level 3 Recommendation (25 August 2026) defines "an API enabling the creation and use of strong, attested, scoped, public key-based credentials." With the Client to Authenticator Protocol, it makes up FIDO2.
The words you'll meet#
| Term | Meaning |
|---|---|
| Relying Party | The website, identified by its domain, such as example.com |
| Authenticator | What holds the private key, "in hardware or software": a phone, laptop, password manager or USB key |
| Attestation | Optional evidence at registration about which authenticator made the credential |
| Assertion | The signed answer the authenticator returns at sign-in |
Registration and sign-in#
To register, the site calls navigator.credentials.create() with a random challenge and its domain. The authenticator makes a new key pair, keeps the private key and returns the public key, which the site stores. To sign in, the site calls navigator.credentials.get():
const assertion = await navigator.credentials.get({
publicKey: { challenge, rpId: "example.com", userVerification: "preferred" }
});You approve with a fingerprint, face or PIN, and the authenticator signs the challenge. The server checks the signature against the stored public key. Because a credential "can only be accessed by origins belonging to that Relying Party," a page at examp1e.com can't ask for the one made for example.com.
Mistakes that weaken it#
- Skipping server checks. Verify the challenge is the one you issued, unused, and that the origin and signature match.
- Keeping a weak fallback. If an emailed code or SMS still signs people in, attackers use that path instead.
- One credential per person. Encourage a second passkey or key, so losing one device doesn't mean account recovery.
In Foxcolab#
Foxcolab sign-in doesn't use WebAuthn: there's no passkey or security-key sign-in, and the account console's old passkeys address opens the Security checkup. Your account is protected by your password and two-step verification with an authenticator app and one-time backup codes. In Foxcolab's end-to-end encrypted apps your password does a second job: it unlocks your key on your device, and Foxcolab never sees it. Open the Security checkup to see what's protecting your account.
Keep exploring
Related terms
- FIDO2FIDO2 is the pair of open standards behind passkeys and security keys, WebAuthn and CTAP. Here's what each part does and why FIDO2 sign-in resists phishing.
- PasskeyA passkey replaces a password with a key pair your device holds. The site stores only the public half, and the passkey works only on the site it was created for.
- Security key (hardware)A security key is a small USB or NFC device that signs you in with public-key cryptography and works only on the real site, which makes it resistant to phishing.
- Public-key cryptographyPublic-key cryptography uses a pair of linked keys, one public and one private, to share secrets and sign data between people who have never met.
- PhishingPhishing is impersonation used to trick people into handing over passwords, approving payments or opening malware. Here's how it works and what actually stops it.

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.