OpenID4VCI Protocol
Token endpoint (pre-authorized_code grant)
Exchange an OpenID4VCI (OpenID for Verifiable Credential Issuance) pre-authorized code for an issuance access token. Send the transaction code when the offer requires one. Use the returned token at the credential endpoint.
post/v1/oauth/token
Request body
Example request
{
"grant_type": "urn:ietf:params:oauth:grant-type:pre-authorized_code",
"pre-authorized_code": "<redacted>",
"tx_code": "<redacted>"
}Response
Didit issued a short-lived access token for credential issuance.
Example response
{
"access_token": "<redacted>",
"expires_in": 300,
"token_type": "Bearer"
}