curl --request POST \
  --url http://localhost:8000/webauthn/login/initialize \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"
}'
{
  "challenge": "qgOI+0KpGnl9NOqaT6dfsYvi96R87LgpErnvePeOgSU=",
  "rpId": "localhost",
  "timeout": 60000,
  "userVerification": "required"
}

Body

application/json
user_id
string

The ID of the user on whose behalf WebAuthn login should be performed

Response

200 - application/json
publicKey
object