We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2a13e commit 7c16bf0Copy full SHA for 7c16bf0
app/routes/api/wh/polar.ts
@@ -13,7 +13,7 @@ export const APIRoute = createAPIFileRoute("/api/wh/polar")({
13
POST: async ({ request }) => {
14
try {
15
const event = validateEvent(
16
- await request.json(),
+ await request.text(),
17
getHeaders() as Record<string, string>,
18
env.POLAR_WEBHOOK_SECRET
19
);
0 commit comments