diff --git a/src/authorization-response/AuthorizationResponse.ts b/src/authorization-response/AuthorizationResponse.ts index a84b5cc..b857417 100644 --- a/src/authorization-response/AuthorizationResponse.ts +++ b/src/authorization-response/AuthorizationResponse.ts @@ -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, }, }); @@ -152,7 +152,7 @@ export class AuthorizationResponse { return { authorizationResponse: this, - verifyOpts, + verifyOpts, presentationSubmission: responseOpts.presentationExchange.presentationSubmissi nonce, state, correlationId: verifyOpts.correlationId,