We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 916ecf4 commit a8b68dbCopy full SHA for a8b68db
.changeset/webhook-verification.md
@@ -0,0 +1,22 @@
1
+---
2
+"thirdweb": minor
3
4
+
5
+Added webhook verification functionality to securely verify incoming webhooks from thirdweb. This includes:
6
7
+- New `Webhook.parse` function to verify webhook signatures and timestamps
8
+- Support for both `x-payload-signature` and `x-pay-signature` header formats
9
+- Timestamp verification with configurable tolerance
10
+- Version 2 webhook payload type support
11
12
+Example usage:
13
+```typescript
14
+import { Webhook } from "thirdweb/bridge";
15
16
+const webhook = await Webhook.parse(
17
+ payload,
18
+ headers,
19
+ secret,
20
+ 300 // optional tolerance in seconds
21
+);
22
+```
0 commit comments