AuthenticationPasskeys
Start registering a passkey
GET
Generate registration options for a new passkey
sessioncookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
authenticatorAttachment?stringType of authenticator to use for registration. "platform" for device-specific authenticators, "cross-platform" for authenticators that can be used across devices.
Value in
"platform""cross-platform"name?stringOptional custom name for the passkey. This can help identify the passkey when managing multiple credentials.
context?stringOptional context for passkey-first registration flows.
Success
application/json- response
challenge?stringrp?user?pubKeyCredParams?array<>timeout?numberexcludeCredentials?array<>authenticatorSelection?attestation?stringextensions?Example Request
curl -X GET 'http://localhost:3000/api/auth/passkey/generate-register-options'Example Response
{ "challenge": "string", "rp": { "name": "string", "id": "string" }, "user": { "id": "string", "name": "string", "displayName": "string" }, "pubKeyCredParams": [ { "type": "string", "alg": 0 } ], "timeout": 0, "excludeCredentials": [ { "id": "string", "type": "string", "transports": [ "string" ] } ], "authenticatorSelection": { "authenticatorAttachment": "string", "requireResidentKey": true, "userVerification": "string" }, "attestation": "string", "extensions": {}}