Stripe webhook returns 401 on a Supabase Edge Function? Here's the fix (and the step after it)
DEV Community
Stripe webhook returns 401 on a Supabase Edge Function? Here's the fix (and the step after it)
Supabase Edge Functions check for a JWT by default and Stripe can't send one. Turn that off for the webhook function only, then verify the Stripe signature with constructEventAsync on the raw body.
0 comments
No comments yet.