Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dont throw error
Browse files Browse the repository at this point in the history
martines3000 committed Jan 14, 2025

Verified

This commit was signed with the committer’s verified signature.
martines3000 Martin Domajnko
1 parent 2756ee0 commit f0dffe7
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -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": {},
11 changes: 8 additions & 3 deletions packages/snap/src/veramo/Veramo.service.ts
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f0dffe7

Please sign in to comment.