コンテンツにスキップ

Verify a DID authentication proof and create a session.

POST
/api/auth/dids/verify
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/auth/dids/verify \
--header 'Content-Type: application/json' \
--data '{ "challenge_id": "challenge_123", "proof": "eyJhbGciOiJFZERTQSJ9..." }'
Media type application/json
object
challenge_id
required
string
proof
required
string
Example
{
"challenge_id": "challenge_123",
"proof": "eyJhbGciOiJFZERTQSJ9..."
}

Successful JSON response.

Media type application/json
object
session_id
required
string
user_id
required
string
expires_in
required
integer
Example
{
"session_id": "sess_123",
"user_id": "user_123",
"expires_in": 86400
}