From e133e964b3d65d0d267bb5baa39bebac4d9edb4b Mon Sep 17 00:00:00 2001 From: sander Date: Wed, 28 Feb 2024 17:09:10 +0100 Subject: [PATCH] SPHEREON-1157: removed rogue paste --- src/authorization-response/AuthorizationResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authorization-response/AuthorizationResponse.ts b/src/authorization-response/AuthorizationResponse.ts index 83fa12a..a84b5cc 100644 --- a/src/authorization-response/AuthorizationResponse.ts +++ b/src/authorization-response/AuthorizationResponse.ts @@ -145,7 +145,7 @@ export class AuthorizationResponse { const state = merged.state ?? verifiedIdToken?.payload.state; if (!state) { - throw Error(`State is required`const payload = await authorizationRequest.requestObject.getPayload()); + throw Error(`State is required`); } else if (oid4vp.presentationDefinitions.length > 0 && !nonce) { throw Error('Nonce is required when using OID4VP'); }