Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlovdog committed Dec 3, 2024
1 parent f3f326b commit 2348111
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>,
Buffer.from(JSON.stringify(req.body))
)
```
Check out the [example](./../../examples/webhook/api/approve.ts) repo for more details.

0 comments on commit 2348111

Please sign in to comment.