app/api/webhooks/route.ts · request handler
Verify the provider signature before processing.
The handler accepts and acts on a request body before establishing that it came from the expected provider.
const payload = await request.json();
await processEvent(payload);
