POST
/
elevate
/
webauthn
/
verify
curl --request POST \
  --url https://local.auth.nhost.run/v1/elevate/webauthn/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "nuno@nhost.io",
  "credential": {
    "id": "zCnsWvxgtMrOCeX6eA_yqQ",
    "rawId": "zCnsWvxgtMrOCeX6eA_yqQ",
    "response": {
      "authenticatorData": "0RE6Bmg2J-FxNrC8136ZQSeTWKWtdni_Lpfv5XR4bDsdAAAAAA",
      "clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uZ2V0IiwiY2hhbGxlbmdlIjoiTkNSSVRVU1pjeFE1ZTFhdUtUcXVlNnA4R0ZacHdxUS1kZzM4bnlWa3NCRSIsIm9yaWdpbiI6Imh0dHBzOi8vcmVhY3QtYXBvbGxvLmV4YW1wbGUubmhvc3QuaW8ifQ",
      "signature": "MEUCIQDRXq3aY-gXWsuYJZhOzqqn6UpoRQfcPdNLP7hpZ7IdvQIgX5rY6TomkYUtqydu-w88fW7KeFm-0oE-5jTdLNHg9zw",
      "userHandle": "8881037a-8495-48ef-8a04-ebbdb69415db"
    },
    "type": "public-key",
    "clientExtensionResults": {}
  },
  "authenticatorAttachment": "platform"
}'
{
  "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"
      ]
    }
  }
}

Authorizations

Authorization
string
headerrequired

JSON Web Token to authorize requests.

Body

application/json
email
string
required

A valid email

credential
object
required
authenticatorAttachment
string

Response

200 - application/json
mfa
object
session
object