From 23481112b2f44af58392227d32f4d0ac669f777e Mon Sep 17 00:00:00 2001 From: Sergey Potekhin Date: Tue, 3 Dec 2024 18:17:27 +0400 Subject: [PATCH] Update README --- packages/webhook/README.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/webhook/README.md b/packages/webhook/README.md index 634da19..7ec95e8 100644 --- a/packages/webhook/README.md +++ b/packages/webhook/README.md @@ -10,13 +10,4 @@ pnpm install @pimlico/webhook ## Usage -```typescript -import { pimlicoWebhookVerifier } from "@pimlico/webhook" - -const verifyWebhook = pimlicoWebhookVerifier(process.env.PIMLICO_API_KEY) - -const body = await verifyWebhook( - req.headers as Record, - Buffer.from(JSON.stringify(req.body)) -) -``` +Check out the [example](./../../examples/webhook/api/approve.ts) repo for more details.