Start authenticated-user Direct Auth passkey registration.
curl --request POST \ --url https://auth.example.com/api/v1/auth/direct/passkey/register/start \ --header 'Content-Type: application/json' \ --data '{ "display_name": "MacBook Pro", "authenticator_type": "platform" }'Creates WebAuthn registration options for adding a passkey to the current Direct Auth session user.
Request Body required
Section titled “Request Body required ”object
Accepted for compatibility and ignored. User verification is always required for passkey registration.
Example
{ "display_name": "MacBook Pro", "authenticator_type": "platform"}Responses
Section titled “ Responses ”Successful JSON response.
object
WebAuthn options generated by @simplewebauthn/server.
object
Example
{ "challenge_id": "challenge_123", "options": { "challenge": "challenge", "rpId": "auth.example.com", "allowCredentials": [], "userVerification": "required" }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}