Passkeys Cheat Sheet for Developers
Passkeys Cheat Sheet for Developers
The developer guide about WebAuthn & implementing passkeys. Download the cheat sheet as a PDF or use this website for all information in one place.
Table of Contents
Enterprise Passkey Whitepaper
Practical guidance, rollout patterns and KPIs for passkey programs.
Ultimate Passkey Developer Guide
Download the Passkeys Cheat Sheet
Get a developer-focused reference for everything passkeys covering platform support, browser behavior, UX best practices and integration tips.
Key Facts
- Authentication with passkeys uses two ceremonies: registration (attestation) and login (assertion), each requiring a server-generated random challenge signed by the authenticator.
- PublicKeyCredentialCreationOptions governs passkey registration while PublicKeyCredentialRequestOptions governs login. Both objects are generated server-side and contain the challenge for the authenticator to sign.
- Passkeys use COSE algorithms for key generation, with the specific algorithm recorded in the parsedCredentialPublicKey attribute of the attestation object.
1. WebAuthn Ceremonies
Authentication with passkeys is based on the two processes, also called ceremonies, registration (aka the attestation phase) and login (aka the assertion phase).
Each phase requires a random challenge generated by the server, which is signed by the authenticator and sent back to the WebAuthn server to verify the user.
1.1 Registration (Attestation)
1.2 Login (Assertion)
2. Important Objects
For the registration and login with passkeys, there are four main objects:
2.1 Public Key Credential Creation Options
{
"PublicKeyCredentialCreationOptions": {
"rp": {
"id": "passkeys.eu",
"name": "Corbado Passkeys Demo"
},
"user": {
"displayName": "john.doe",
"id": "dXNyLZ….DU10Tc",
"name": "john@doe.com"
},
"challenge": "888fix4Bus...pHHr3Y",
"pubKeyCredParams": [
{
"alg": -7,
"type": "public-key"
},
{
"alg": -257,
"type": "public-key"
}
],
"excludeCredentials": [],
"authenticatorSelection": {
"authenticatorAttachment": "platform",
"residentKey": "required",
"userVerification": "required"
},
"attestation": "none",
"extensions": {}
}
}
5. Helpful Websites and Tools
Here's a list of useful tools & websites for implementing passkeys.
- Passkeys Debugger: Tool for debugging the WebAuthn Responses as JSON and testing WebAuthn operations with different options.
- Passkeys Glossary: Explanation of passkey-related terms & concepts
- WebAuthn Specification: This is the official WebAuthn specification.
- Chrome Device Log: Tool for showing a log of your device's WebAuthn operations (only available on Chrome via
chrome://device-log)
About Corbado
Corbado is the Passkey Intelligence Platform for large-scale CIAM teams running consumer authentication. We help you see what IDP logs and generic analytics tools can't: where passkeys, passwords, OTP, social login and fallback journeys succeed, stall or fail, which devices and browsers create friction.
Frequently Asked Questions
How do I implement Conditional UI for passkey autofill in my web app?
Conditional UI requires checking browser support via PublicKeyCredential.isConditionalMediationAvailable() before initiating authentication.
What is the minimum data I need to store in my database to support WebAuthn authentication?
At minimum, store the Credential ID, generated by the authenticator during registration, and the User ID (user_id).