Skip to content

Commit

Permalink
fix: allow dcql_query to be an object
Browse files Browse the repository at this point in the history
  • Loading branch information
auer-martin committed Feb 17, 2025
1 parent 64623b4 commit 6c0ac2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function validateOpenid4vpAuthorizationResponse(
)
}

if (typeof authorizationResponse.vp_token !== 'string') {
if (typeof authorizationResponse.vp_token !== 'string' && typeof authorizationResponse.vp_token !== 'object') {
throw new Oauth2Error('If DCQL was used the vp_token must be a JSON-encoded object.')
}

Expand Down

0 comments on commit 6c0ac2e

Please sign in to comment.