Skip to content

Commit

Permalink
chore: set not send presentationDefinitions to RP instance when DCQL …
Browse files Browse the repository at this point in the history
…is present
  • Loading branch information
sanderPostma committed Jan 14, 2025
1 parent 6202193 commit c933fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/siopv2-oid4vp-rp-auth/src/agent/SIOPv2RP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ export class SIOPv2RP implements IAgentPlugin {
rp.get(context).then((rp) =>
rp.verifyAuthorizationResponse(authResponse, {
correlationId: args.correlationId,
presentationDefinitions: args.presentationDefinitions,
dcqlQuery: args.dcqlQuery as DcqlQuery, // TODO BEFORE PR, check compatibility and whether we can remove local type
...(args.presentationDefinitions && !args.dcqlQuery ? { presentationDefinitions: args.presentationDefinitions } : {}),
...(args.dcqlQuery ? { dcqlQuery: args.dcqlQuery as DcqlQuery } : {}), // TODO BEFORE PR, check compatibility and whether we can remove local type
audience: args.audience,
}),
),
Expand Down

0 comments on commit c933fcf

Please sign in to comment.