Skip to content

Verify WebAuthn login and create a session.

POST
/api/auth/passkeys/login/verify
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/auth/passkeys/login/verify \
--header 'Content-Type: application/json' \
--data '{ "challengeId": "challenge_123", "credential": { "id": "credential-id", "type": "public-key", "response": {} } }'
Media type application/json
object
challengeId
required
string
credential
required

WebAuthn credential response from the browser.

object
key
additional properties
Example
{
"challengeId": "challenge_123",
"credential": {
"id": "credential-id",
"type": "public-key",
"response": {}
}
}

Successful JSON response.

Media type application/json
object
verified
required
boolean
sessionId
required
string
userId
required
string
user
required
object
id
string
email
Any of:
string format: email
name
Any of:
string
email_verified
One of:
boolean
created_at
string
updated_at
string
last_login_at
Any of:
string
user_type
string
Example
{
"verified": true,
"sessionId": "sess_123",
"userId": "user_123",
"user": {
"id": "user_123",
"email": "[email protected]",
"name": "Example User",
"email_verified": true
}
}