Skip to content

Commit

Permalink
chore: reverted definitionVersionDiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Jan 21, 2025
1 parent fa56bcc commit 2180e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/siop-oid4vp/lib/authorization-request/Payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const createPresentationDefinitionClaimsProperties = (opts: ClaimPayloadO
return undefined
}

if (!opts.vp_token.presentation_definition && !opts.vp_token.presentation_definition_uri) {
if (opts.vp_token.presentation_definition) {
const discoveryResult = PEX.definitionVersionDiscovery(opts.vp_token.presentation_definition)
if (discoveryResult.error) {
throw new Error(SIOPErrors.REQUEST_CLAIMS_PRESENTATION_DEFINITION_NOT_VALID)
Expand Down

0 comments on commit 2180e7f

Please sign in to comment.