diff --git a/README.md b/README.md index 4e99146..1f3b800 100644 --- a/README.md +++ b/README.md @@ -490,7 +490,7 @@ changes the bytes and verification will fail. import express from 'express'; import { verifyWebhook, WebhookVerificationError } from '@seatlayer/server'; -app.post('/webhooks/seatlayer', express.raw({ type: 'application/json' }), (req, res) => { +app.post('/webhooks/seatlayer', express.raw({ type: 'application/json' }), async (req, res) => { try { const event = verifyWebhook({ payload: req.body, // Buffer, not parsed JSON