curl --request POST \
  --url http://localhost:8000/webauthn/registration/initialize
{
  "publicKey": {
    "attestation": "none",
    "authenticatorSelection": {
      "authenticatorAttachment": "platform",
      "requireResidentKey": true,
      "residentKey": "preferred",
      "userVerification": "required"
    },
    "challenge": "7qmkJUXR0dOFnsW48evX3qKdCzlGjvvqAAvMDN+KTN0=",
    "pubKeyCredParams": [
      {
        "alg": -7,
        "type": "public-key"
      }
    ],
    "rp": {
      "id": "localhost",
      "name": "Hanko Authentication Service"
    },
    "timeout": 60000,
    "user": {
      "displayName": "user@example.com",
      "id": "pPQT9rwJRD7gVncsnCDNyN",
      "name": "user@example.com"
    }
  }
}

Authorizations

hanko
string
cookierequired

Response

200 - application/json
publicKey
object