diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 95b3d5ce..a144915f 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -26,7 +26,7 @@ "./files/circuits/credentialAtomicQuerySigV2/circuit_final.zkey", "./files/circuits/credentialAtomicQuerySigV2/verification_key.json" ], - "shasum": "rBxXNEKUICBygnOaL4YtXDHjvqs/idhTWhWIN/ZMAtk=" + "shasum": "JodjqtKp5wf+vGLtAv3BWt+r8rflH91hTOkJBq4U+WU=" }, "initialPermissions": { "endowment:ethereum-provider": {}, diff --git a/packages/snap/src/veramo/Veramo.service.ts b/packages/snap/src/veramo/Veramo.service.ts index fe65e3e8..255c675b 100644 --- a/packages/snap/src/veramo/Veramo.service.ts +++ b/packages/snap/src/veramo/Veramo.service.ts @@ -768,9 +768,14 @@ class VeramoService { const { sendOIDCAuthorizationResponseArgs } = handleAuthorizationRequestResult; - await VeramoService.sendAuthorizationResponse( - sendOIDCAuthorizationResponseArgs - ); + const authorizationResponseResult = + await VeramoService.instance.sendOIDCAuthorizationResponse( + sendOIDCAuthorizationResponseArgs + ); + + if (isError(authorizationResponseResult)) { + throw new Error(authorizationResponseResult.error); + } } // FIXME: This is a temporary solution (we need to refactor this)