Commit 4af7040
fix: bypass middleware auth for webhook endpoints (#82)
## Summary
- Stripe webhook POST requests were intercepted by middleware and
redirected to `/login` (no user session), returning 401 to Stripe
- Added `/api/webhooks/` to the middleware bypass list alongside
`/api/health`
- Combined with registering the Stripe endpoint as a **Connect** webhook
(done in Stripe dashboard), this fixes zero webhook delivery for member
signup/payment flows
## Test plan
- [ ] Deploy to dev preview
- [ ] Send test event from Stripe Connect webhook endpoint → expect 200
- [ ] Full signup + payment flow → verify credits appear in member
account
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4ab3ea1 commit 4af7040
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments