WebAuthn - Authentication
Ceremony in which a relying party asks the browser, through the WebAuthn API, for a signed assertion from an authenticator holding a previously registered passkey, and verifies it with the stored public key to sign the user in.
Authentication is the WebAuthn ceremony that proves the user controls a credential registered earlier. The relying party (RP) sends a fresh random challenge, the application passes it to the browser with navigator.credentials.get(), and the authenticator signs it, together with data about the request, using the private key it holds for that RP ID.
The RP verifies the signature with the public key it stored at registration. No secret is sent over the network, and the browser only releases an assertion for the origin that matches the credential's RP ID, so a phishing site can't obtain a usable one.
This diagram shows authentication with a user-verifying authenticator, starting from a username (a discoverable credential would allow an empty allowCredentials list instead).