Skip to content

fix: return error when webhook signature or secret is missing#33

Open
ahfoysal wants to merge 1 commit into
KolbySisk:mainfrom
ahfoysal:fix/webhook-missing-signature-response
Open

fix: return error when webhook signature or secret is missing#33
ahfoysal wants to merge 1 commit into
KolbySisk:mainfrom
ahfoysal:fix/webhook-missing-signature-response

Conversation

@ahfoysal

@ahfoysal ahfoysal commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • return a 401 JSON response when the Stripe signature or webhook secret is missing
  • avoid returning undefined from the webhook route so Stripe does not treat invalid deliveries as successful

Closes #28.

Verification

  • npm run lint passed
  • npm run build was attempted, but it fails on an existing unrelated type error in src/app/(account)/account/page.tsx where product.prices is inferred as never.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Webhook route returns 200 OK when Stripe signature or secret is missing

1 participant