curl --request POST \
--url https://local.auth.nhost.run/v1/signin/webauthn \
--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"
}
curl --request POST \
--url https://local.auth.nhost.run/v1/signin/webauthn \
--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"
}
The body is of type object
.
Signed in successfully
The response is of type object
.