fix: does it work with body?

This commit is contained in:
2025-07-06 12:57:42 -07:00
parent c0a276947a
commit 63de0cbb7e

View File

@ -26,7 +26,7 @@ export const validateWebhook = (
}
const signature = request.headers["x-signature-ed25519"];
const timestamp = request.headers["x-signature-timestamp"];
const { rawBody } = request;
const rawBody = request.rawBody ?? request.body;
if (
signature === undefined
|| timestamp === undefined