Skip to content

Commit

Permalink
chore: dcql fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Jan 13, 2025
1 parent 7e8a5fd commit b28b39e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/siop-oid4vp/lib/rp/RP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,12 @@ export class RP {
state,
nonce,
verification: mergeVerificationOpts(this._verifyResponseOptions, opts),
presentationDefinitions: this._verifyResponseOptions.presentationDefinitions ?? opts?.presentationDefinitions,
dcqlQuery: this._verifyResponseOptions.dcqlQuery ?? opts?.dcqlQuery
...(opts?.presentationDefinitions && !opts?.dcqlQuery && {
presentationDefinitions: this._verifyResponseOptions.presentationDefinitions ?? opts?.presentationDefinitions
}),
...(opts?.dcqlQuery && !opts?.presentationDefinitions && {
dcqlQuery: this._verifyResponseOptions.dcqlQuery ?? opts?.dcqlQuery
})
}
}

Expand Down

0 comments on commit b28b39e

Please sign in to comment.