Passkeys Under the Hood: Testing WebAuthn Step by Step
Learn how passkeys work by creating a test credential, reading its flags, AAGUID and public key, then signing in and verifying the signature yourself.

Passkeys are steadily replacing passwords on major websites. For users they feel almost magical: unlock your phone or laptop and you are signed in. For developers adding them to a site, the WebAuthn API that powers passkeys can feel like a wall of unfamiliar terms. Discoverable credentials, user verification, attestation, authenticator data flags, CBOR, COSE keys. The fastest way to understand them is to run the real ceremony and look at what comes back. That is what this guide walks through.
The idea in one paragraph
When you create a passkey, your device makes a new key pair just for that website. The private key stays inside the authenticator, which may be your phone's secure hardware, your password manager or a USB security key. The website receives only the public key. To sign in, the site sends a random challenge, the authenticator signs it after you unlock it, and the site checks the signature with the stored public key. There is no shared secret to steal from the server and nothing a fake website can reuse, because the key is tied to the real site's name.
Creating a test passkey
Open the Passkey and WebAuthn Tester. The panel at the top tells you whether this browser has a platform authenticator with user verification and whether passkey autofill is supported.
On the create tab you choose four options. Authenticator attachment limits the prompt to this device or to roaming authenticators such as security keys and phones; any leaves the choice to the browser. Resident key decides whether the credential must be discoverable, which is what makes it a passkey that can sign you in without typing a user name. User verification controls whether a PIN or biometric is required or merely preferred. Attestation asks the authenticator to prove its make and model; most consumer sites leave this at none.
Press create and approve the familiar system prompt. The test credential uses a made-up user name and belongs only to this website.
Reading the response
The result panel decodes everything the authenticator returned. The client data check confirms the type, the challenge the page sent and the origin. The relying party ID hash check confirms the credential is bound to this site. Then come the flags, which are the most informative part.
UP means a user was present. UV means they were verified with a fingerprint, face, device PIN or security key PIN. BE, backup eligible, means the passkey can be synced across devices through a provider like iCloud Keychain or Google Password Manager. BS says it is currently backed up. A security key will typically show UP and UV but not BE, because its keys never leave the hardware.
The AAGUID identifies the authenticator model or passkey provider. The tester names a few well-known ones; an all-zero AAGUID is common when attestation is none. You also see the key algorithm, usually ES256 on the P-256 curve, the transports the authenticator supports, and whether the browser reports the credential as discoverable.
Signing in and checking the signature
Switch to the sign-in tab. Sign in with any passkey triggers the discoverable flow, where the browser shows an account picker. The named buttons instead send the ID of one stored credential, which is how sites support security keys that are not discoverable.
After you approve, the tester does what a server would do. It checks the client data and relying party hash, imports the public key it saved when you created the passkey, and verifies the signature over the authenticator data and the hash of the client data. It also compares the signature counter. Hardware keys usually increase it on every use, and a counter that goes backwards can reveal a cloned key. Synced passkeys report zero, and servers should simply skip the check in that case.
Lessons for your own implementation
Running these tests on a few devices teaches quickly what to expect from users. Phones and laptops usually produce synced passkeys with user verification. Security keys may not support discoverable credentials at all unless you ask. Requiring attestation adds friction for little gain on consumer sites. And user verification preferred, the default, is a good balance for most services.
When you are finished, use the forget button to remove the test entries from this page, and delete the passkey itself in your password manager or security key settings, since a website cannot remove a passkey from your device.



