generated from nhcarrigan/template
fix: does it work with body?
This commit is contained in:
@ -26,7 +26,7 @@ export const validateWebhook = (
|
|||||||
}
|
}
|
||||||
const signature = request.headers["x-signature-ed25519"];
|
const signature = request.headers["x-signature-ed25519"];
|
||||||
const timestamp = request.headers["x-signature-timestamp"];
|
const timestamp = request.headers["x-signature-timestamp"];
|
||||||
const { rawBody } = request;
|
const rawBody = request.rawBody ?? request.body;
|
||||||
if (
|
if (
|
||||||
signature === undefined
|
signature === undefined
|
||||||
|| timestamp === undefined
|
|| timestamp === undefined
|
||||||
|
Reference in New Issue
Block a user