Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
SPHEREON-1157: responseOpts.presentationExchange can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Feb 28, 2024
1 parent e133e96 commit 6bae0d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authorization-response/AuthorizationResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class AuthorizationResponse {
verificationCallback: verifyOpts.verification.presentationVerificationCallback,
opts: {
...responseOpts.presentationExchange,
presentationSubmission: responseOpts.presentationExchange.presentationSubmission ?? authorizationResponsePayload.presentation_submission,
presentationSubmission: responseOpts.presentationExchange?.presentationSubmission ?? authorizationResponsePayload.presentation_submission,
hasher: verifyOpts.hasher,
},
});
Expand Down Expand Up @@ -152,7 +152,7 @@ export class AuthorizationResponse {

return {
authorizationResponse: this,
verifyOpts,
verifyOpts, presentationSubmission: responseOpts.presentationExchange.presentationSubmissi
nonce,
state,
correlationId: verifyOpts.correlationId,
Expand Down

0 comments on commit 6bae0d4

Please sign in to comment.