diff --git a/src/authorization-response/AuthorizationResponse.ts b/src/authorization-response/AuthorizationResponse.ts index f2d11e4..a84b5cc 100644 --- a/src/authorization-response/AuthorizationResponse.ts +++ b/src/authorization-response/AuthorizationResponse.ts @@ -120,9 +120,11 @@ export class AuthorizationResponse { presentationDefinitions, presentations: wrappedPresentations, verificationCallback: verifyOpts.verification.presentationVerificationCallback, - opts: { ...responseOpts.presentationExchange, - presentationSubmission: (responseOpts.presentationExchange.presentationSubmission ?? authorizationResponsePayload.presentation_submission), - hasher: verifyOpts.hasher }, + opts: { + ...responseOpts.presentationExchange, + presentationSubmission: responseOpts.presentationExchange.presentationSubmission ?? authorizationResponsePayload.presentation_submission, + hasher: verifyOpts.hasher, + }, }); } diff --git a/src/authorization-response/Payload.ts b/src/authorization-response/Payload.ts index 2c395aa..270c66c 100644 --- a/src/authorization-response/Payload.ts +++ b/src/authorization-response/Payload.ts @@ -25,7 +25,7 @@ export const createResponsePayload = async ( ...(responseOpts.accessToken && { access_token: responseOpts.accessToken }), ...(responseOpts.tokenType && { token_type: responseOpts.tokenType }), ...(responseOpts.refreshToken && { refresh_token: responseOpts.refreshToken }), - ...(payload?.nonce && { nonce: payload.nonce}), + ...(payload?.nonce && { nonce: payload.nonce }), expires_in: responseOpts.expiresIn || 3600, state, };