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"
}
}
}'
{
"challenge": "eKdWG60F0lB-wNOviefzn6En0jvdf_GYDyCK2Zuznh8",
"rp": {
"name": "hasura-auth",
"id": "localhost"
},
"user": {
"id": "44b96e0d-18ad-48b9-a517-6537d32223da",
"name": "john.smith@nhost.io",
"displayName": "John Smith"
},
"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"
}
],
"timeout": 60000,
"attestation": "indirect",
"excludeCredentials": [],
"authenticatorSelection": {
"requireResidentKey": false,
"userVerification": "preferred"
}
}
The body is of type object
.
Signed Up successfully
The response is of type object
.
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"
}
}
}'
{
"challenge": "eKdWG60F0lB-wNOviefzn6En0jvdf_GYDyCK2Zuznh8",
"rp": {
"name": "hasura-auth",
"id": "localhost"
},
"user": {
"id": "44b96e0d-18ad-48b9-a517-6537d32223da",
"name": "john.smith@nhost.io",
"displayName": "John Smith"
},
"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"
}
],
"timeout": 60000,
"attestation": "indirect",
"excludeCredentials": [],
"authenticatorSelection": {
"requireResidentKey": false,
"userVerification": "preferred"
}
}
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"
}
}
}'
{
"challenge": "eKdWG60F0lB-wNOviefzn6En0jvdf_GYDyCK2Zuznh8",
"rp": {
"name": "hasura-auth",
"id": "localhost"
},
"user": {
"id": "44b96e0d-18ad-48b9-a517-6537d32223da",
"name": "john.smith@nhost.io",
"displayName": "John Smith"
},
"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"
}
],
"timeout": 60000,
"attestation": "indirect",
"excludeCredentials": [],
"authenticatorSelection": {
"requireResidentKey": false,
"userVerification": "preferred"
}
}
The body is of type object
.
Signed Up successfully
The response is of type object
.
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"
}
}
}'
{
"challenge": "eKdWG60F0lB-wNOviefzn6En0jvdf_GYDyCK2Zuznh8",
"rp": {
"name": "hasura-auth",
"id": "localhost"
},
"user": {
"id": "44b96e0d-18ad-48b9-a517-6537d32223da",
"name": "john.smith@nhost.io",
"displayName": "John Smith"
},
"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"
}
],
"timeout": 60000,
"attestation": "indirect",
"excludeCredentials": [],
"authenticatorSelection": {
"requireResidentKey": false,
"userVerification": "preferred"
}
}