Back to Recipes
Passkey Login
Passwordless and password sign-in in one form, backed by the WebAuthn passkey handlers.
Live Preview
Sign in
Forgot password? Don't have an account? Create account
Key Features
- Email/password and passkey sign-in in one form (mode="both")
- Discoverable (usernameless) passkey login — no email field needed
- Server WebAuthn ceremony via createPasskeyAuthenticationOptions/Verify handlers
- Per-ceremony challenge pinned to a single-use HttpOnly cookie
- CSRF-protected requests through the bundled csrfFetch
- PasskeyManager lets signed-in users add and remove credentials
Components Used
Passkey Login — full flow
Loading...
Loading syntax highlighting...