POST
/
signup
/
webauthn
curl --request POST \
  --url https://local.auth.nhost.run/v1/signup/webauthn \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "john.smith@nhost.io",
  "options": {
    "allowedRoles": [
      "me",
      "user"
    ],
    "defaultRole": "user",
    "displayName": "John Smith",
    "locale": "en",
    "metadata": {
      "firstName": "John",
      "lastName": "Smith"
    }
  }
}'
{
  "attestation": "indirect",
  "authenticatorSelection": {
    "requireResidentKey": false,
    "userVerification": "preferred"
  },
  "challenge": "eKdWG60F0lB-wNOviefzn6En0jvdf_GYDyCK2Zuznh8",
  "excludeCredentials": [],
  "pubKeyCredParams": [
    {
      "alg": -7,
      "type": "public-key"
    },
    {
      "alg": -8,
      "type": "public-key"
    },
    {
      "alg": -36,
      "type": "public-key"
    },
    {
      "alg": -37,
      "type": "public-key"
    },
    {
      "alg": -38,
      "type": "public-key"
    },
    {
      "alg": -39,
      "type": "public-key"
    },
    {
      "alg": -257,
      "type": "public-key"
    },
    {
      "alg": -258,
      "type": "public-key"
    },
    {
      "alg": -259,
      "type": "public-key"
    }
  ],
  "rp": {
    "id": "localhost",
    "name": "hasura-auth"
  },
  "timeout": 60000,
  "user": {
    "displayName": "John Smith",
    "id": "44b96e0d-18ad-48b9-a517-6537d32223da",
    "name": "john.smith@nhost.io"
  }
}

Body

application/json
email
string
required

A valid email

options
object

Response

200 - application/json
attestation
string
authenticatorSelection
object
challenge
string
excludeCredentials
any[]
pubKeyCredParams
object[]
rp
object
timeout
integer
user
object