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.

Get Whitepaper

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

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.

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).