feat: log entitlement purchases #3

Merged
naomi merged 9 commits from feat/entitlements into main 2025-07-06 13:48:18 -07:00
7 changed files with 378 additions and 6 deletions
Showing only changes of commit 63de0cbb7e - Show all commits

View File

@ -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