Public-key credentials: what the authenticator and server each hold
The authenticator keeps a private key and signs a fresh login request. The service stores the matching public key and verifies the response.
Public-key credentials: what the authenticator and server each hold
In WebAuthn, public-key credential can mean different related data depending on context: the authenticator-side credential source, its public key, or a signed assertion used during sign-in. At registration, the authenticator creates a key pair and protects the private key; the service stores the public key and credential ID with the account. At login, the service sends a fresh challenge. The authenticator signs data bound to that request, and the service checks the challenge, origin, RP ID, registered credential, and signature before opening a session. A credential ID is not the private key, and a public-key database alone cannot produce the private key when the protocol and key storage are properly implemented. For a hypothetical inventory.example account, a mismatched challenge or origin must fail closed. Use a reviewed WebAuthn server library; do not treat a signature alone as sufficient or as proof of a personʼs civil identity. Plan backup credentials and account recovery.
Sources
[W3C Web Authentication: An API for accessing Public Key Credentials, Level 3](https://www.w3.org/TR/webauthn-3/)
[FIDO Alliance: Passkeys](https://fidoalliance.org/passkeys/)