Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
auer-martin committed Oct 1, 2024
1 parent 348d5bc commit 2c1a354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/siop-oid4vp/lib/op/OP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export class OP {
return responseMode === ResponseMode.DIRECT_POST_JWT || responseMode === ResponseMode.QUERY_JWT || responseMode === ResponseMode.FRAGMENT_JWT
}

const requestObjectPayload = await response.authorizationRequest.requestObject.getPayload()
const { response_mode: responseMode } = requestObjectPayload
const requestObjectPayload = await response.authorizationRequest.requestObject?.getPayload()
const responseMode = requestObjectPayload?.response_mode ?? response.options?.responseMode

if (
!response ||
Expand Down

0 comments on commit 2c1a354

Please sign in to comment.