Skip to content

Commit 3231533

Browse files
docs: add example for HMAC verification
docs: add example for HMAC verification
1 parent 630e9df commit 3231533

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,16 @@ while (page != null) {
251251

252252
---
253253

254+
---
255+
256+
## Webhook Verification
257+
258+
We provide helper methods for verifying that a webhook request came from Lithic, and not a malicious third party.
259+
260+
You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lithic.webhooks().unwrap(body, headers, secret?) -> Event`.
261+
262+
---
263+
254264
## Error handling
255265

256266
This library throws exceptions in a single hierarchy for easy handling:

0 commit comments

Comments
 (0)