cURL
curl --request POST \ --url https://local.auth.local.nhost.run/v1/elevate/webauthn \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "john.smith@nhost.io" }'
{ "challenge": "KOGeoAfC2nrZ_SluhmU5RYYMvBsRDvzghjERGdXbbfQ", "allowCredentials": [ { "id": "zCnsWvxgtMrOCeX6eA_yqQ", "type": "public-key" } ], "timeout": 60000, "userVerification": "preferred", "rpId": "react-apollo.example.nhost.io" }
Elevate access for an already signed in user using FIDO2 Webauthn
JSON Web Token to authorize requests.
The body is of type object.
object
Elevated Webauthn successfully
The response is of type object.
Was this page helpful?