What Is a Passkey? Passwordless Login for Websites
A passkey is a WebAuthn credential that lets a user sign in with local device verification such as a screen lock, fingerprint or face recognition. The server stores no shared password secret. A unique public-key credential is bound to the website, making passkeys significantly more resistant to phishing.
Biometric data is not sent to the website. The device verifies the user locally and signs a server challenge with the site-specific private key.
How does a passkey work?
During registration, the authenticator creates a key pair. The private key remains protected on the device or in the user's passkey provider; the public key is stored with the account.
For login, the server sends a fresh challenge. After local user verification, the authenticator signs it for the correct relying-party domain. The server verifies the signature with the public key. No reusable password crosses the network.
Why are passkeys phishing-resistant?
A WebAuthn credential is scoped to the relying party ID. A visually similar fraudulent domain cannot request the credential created for the legitimate domain. This does not eliminate session theft, weak account recovery, compromised devices or authorization errors; those layers still require protection.
Passkey vs password vs SMS
| Feature | Passkey | Password | SMS code | |---|---|---|---| | Shared secret | No | Yes | Temporary code | | Phishing resistance | High | Low | Low to moderate | | Server breach material | Public key | Password hash | Phone data | | User action | Device verification | Recall or manager | Wait and type code | | Device transition | Sync or QR | Password manager | Phone line | | Recovery required | Yes | Yes | Depends on line access |
SMS can be a fallback in some systems but does not provide the same site-bound phishing resistance.
Synced and device-bound credentials
Synced passkeys can move across a user's devices through a protected platform ecosystem. Device-bound credentials remain on one authenticator and may suit managed enterprise assurance. Define whether the product needs personal-device convenience, hardware security keys, shared-device support or QR-based cross-device login.
Implementation steps
1. Configure the relying-party ID, allowed origins and HTTPS. 2. Generate a fresh registration challenge and user identifier on the server. 3. Start credential creation with the browser WebAuthn API. 4. Verify the returned attestation using a maintained library. 5. Store credential ID, public key, counter and required metadata. 6. Generate a new challenge for every login. 7. Verify assertion signature, challenge, origin, RP ID and user verification. 8. Create a secure, appropriately scoped session after verification.
Do not implement cryptographic verification from scratch. Use a current, tested WebAuthn/FIDO library.
User experience
Offer a passkey after a successful existing login and explain that biometrics stay on the device. Show what happens if the device is lost. Conditional UI can integrate passkeys with username autofill in supporting browsers, but capability detection and fallback remain necessary.
Account recovery is critical
A phishing-resistant login with weak email recovery is only as strong as the recovery path. Support multiple passkeys, lost-device removal, strong reauthentication for new devices, recovery codes or a robust support process, notifications for risky changes and auditable enterprise administration.
Show registered credentials with understandable device names and dates. Sensitive deletion may require recent authentication and confirmation.
Accessibility
Passkeys can reduce memory burden and support WCAG 2.2 Accessible Authentication, but biometrics must not be the only option. Allow a PIN, device unlock, security key or accessible recovery route. Test screen-reader labels, QR flows, timeouts and errors. See the [WCAG 2.2 guide](/en/blog/wcag-2-2-web-accessibility-guide).
Migration strategy
1. Add passkeys while retaining the existing secure method. 2. Launch voluntary enrollment and credential management. 3. Measure registration, success, failure and recovery. 4. Test a passkey-first experience on supported devices. 5. Define policy for high-risk users. 6. Prove device coverage and recovery before removing passwords.
Review the target audience's browser and device mix before making passkeys mandatory.
Security checklist
- HTTPS and exact RP ID/origin validation - Strong, one-time challenges - Complete server-side assertion verification - Replay and session-fixation defenses - Secure cookie configuration - Multiple credential management - Strong recovery - Reauthentication for sensitive actions - Notifications and audit logs for enrollment/removal - Cross-browser end-to-end tests
Bottom line
A passkey is not a more convenient password. It removes the shared secret and uses site-bound public-key authentication. A reliable deployment includes device management, recovery, accessibility and session security—not only a WebAuthn API call.
For a passkey-enabled membership system or customer portal, review the [web development services](/en/services) and [projects](/en/projects).
Sources
- [W3C Web Authentication Level 3](https://www.w3.org/TR/webauthn-3/) - [FIDO Alliance: Passkeys](https://fidoalliance.org/passkeys/) - [MDN Web Authentication API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API) - [W3C WCAG 2.2 Accessible Authentication](https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html)
