Skip to content

Commit 79a948d

Browse files
Verify sig
1 parent 3bba0f1 commit 79a948d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/smooth-ducks-run.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@saleor/app-sdk": patch
3+
---
4+
5+
Development release

src/verify-signature.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export const verifySignatureWithJwks = async (jwks: string, signature: string, r
6969
try {
7070
await jose.flattenedVerify(jws, localJwks);
7171
debug("JWKS verified");
72-
} catch {
73-
debug("JWKS verification failed");
72+
} catch (error) {
73+
debug("JWKS verification failed with error", error);
7474
throw new Error("JWKS verification failed");
7575
}
7676
};

0 commit comments

Comments
 (0)