Skip to content

Verify and link a DID registration proof.

POST
/api/auth/dids/register/verify
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/auth/dids/register/verify \
--header 'Content-Type: application/json' \
--cookie authrim_session=<authrim_session> \
--data '{ "challenge_id": "challenge_123", "proof": "eyJhbGciOiJFZERTQSJ9..." }'

Verifies the DID proof for a prior registration challenge and links the DID to the current authenticated session user.

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
success
required
boolean
did
required
string
message
required
string
Example
{
"success": true,
"did": "did:web:example.com",
"message": "DID successfully linked to your account"
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}