POST
/
signup
/
webauthn
/
verify
curl --request POST \
  --url https://local.auth.nhost.run/v1/signup/webauthn/verify \
  --header 'Content-Type: application/json' \
  --data '{
  "credential": {
    "id": "zCnsWvxgtMrOCeX6eA_yqQ",
    "rawId": "zCnsWvxgtMrOCeX6eA_yqQ",
    "response": {
      "attestationObject": "o2NmbXRkbm9uZWdhdHRTdG10oGhhdXRoRGF0YViU0RE6Bmg2J-FxNrC8136ZQSeTWKWtdni_Lpfv5XR4bDtdAAAAALraVWanqkAfvZZFYZpVEg0AEMwp7Fr8YLTKzgnl-ngP8qmlAQIDJiABIVgg3XjPRqX1a22te029Du57F1w56XXy3GARb842fEtQlIEiWCC1Jce4J3bN1P-V-78elqwVy0u6MAxEcZwCvkSLqZjkjA",
      "clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoiSGlwZ0NKLWR0bU1FeWxRN05pRnV4VXE0allNbFIwMDA1V2VmcEJWQm9payIsIm9yaWdpbiI6Imh0dHBzOi8vcmVhY3QtYXBvbGxvLmV4YW1wbGUubmhvc3QuaW8ifQ"
    },
    "type": "public-key",
    "clientExtensionResults": {},
    "authenticatorAttachment": "platform",
    "transports": [
      "internal",
      "hybrid"
    ]
  },
  "options": {}
}'
{
  "mfa": {
    "ticket": "<string>"
  },
  "session": {
    "accessToken": "<string>",
    "accessTokenExpiresIn": 123,
    "refreshToken": "2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24",
    "user": {
      "activeMfaType": "totp",
      "avatarUrl": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "defaultRole": "user",
      "displayName": "John Smith",
      "email": "john.smith@nhost.io",
      "emailVerified": true,
      "id": "2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24",
      "isAnonymous": true,
      "locale": "en",
      "metadata": {
        "firstName": "John",
        "lastName": "Smith"
      },
      "phoneNumber": "<string>",
      "phoneNumberVerified": true,
      "roles": [
        "me",
        "user"
      ]
    }
  }
}

Body

application/json
credential
object
required
options
object

Response

200 - application/json
mfa
object
session
object