From 2180e7fb420ea71bb1ac56b48fb82d541fde439a Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Tue, 21 Jan 2025 10:25:54 +0100 Subject: [PATCH] chore: reverted definitionVersionDiscovery --- packages/siop-oid4vp/lib/authorization-request/Payload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/siop-oid4vp/lib/authorization-request/Payload.ts b/packages/siop-oid4vp/lib/authorization-request/Payload.ts index 5c572ad2..bd0d4591 100644 --- a/packages/siop-oid4vp/lib/authorization-request/Payload.ts +++ b/packages/siop-oid4vp/lib/authorization-request/Payload.ts @@ -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)