PublicKeyCredentialRequestOptions is an important object in the WebAuthn standard,
used during the login with a credential. They are essential for the
navigator.credential.get() function, providing the necessary data to generate an
authentication assertion.
{ "publicKeyCredentialRequestOptions": { "challenge": "pT7HMA-…dFPHk", "timeout": 500, "rpId": "passkeys.eu", "userVerification": "preferred", "allowCredentials": [], "extensions": [] } }
Continue reading for a full breakdown of the components and workings of PublicKeyCredentialRequestOptions.
As shown in the flowchart for the login process, passing publicKeyCredentialRequestOptions to the Frontend is the first step by the Backend during authentication. A crucial part is the cryptographic challenge that is later signed by the authenticator.
Here's a quick explanation of all attributes, as specified in the WebAuthn specification.
"challenge": "pT7HMA-…dFPHk",
"timeout": 500,
"rpId": "passkeys.eu"
"userVerification": "preferred",
"allowCredentials": [],
"extensions": []
Table of Contents
Related Articles