[PR #5088] [MERGED] fix(stripe): throw error if event failed to be constructed #5766

Closed
opened 2026-03-13 12:34:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5088
Author: @Bekacru
Created: 10/4/2025
Status: Merged
Merged: 10/5/2025
Merged by: @Bekacru

Base: canaryHead: fix/stripe-event


📝 Commits (1)

  • 97fc7ec fix: throw error if event failed to be constructed

📊 Changes

5 files changed (+19 additions, -8 deletions)

View changed files

📝 docs/app/page.tsx (+8 -6)
📝 docs/package.json (+1 -0)
📝 packages/stripe/src/index.ts (+5 -0)
📝 pnpm-lock.yaml (+4 -1)
📝 pnpm-workspace.yaml (+1 -1)

📄 Description

Summary by cubic

Improve Stripe webhook handling by throwing a BAD_REQUEST error when the event cannot be constructed. Also updates the docs homepage CTA and pins @better-fetch/fetch for consistent builds.

  • Bug Fixes

    • Throw APIError("BAD_REQUEST", "Failed to construct event") when Stripe webhook event is undefined before processing.
  • Dependencies

    • Add @better-fetch/fetch to docs and pin version to 1.1.18 via catalog; update workspace and lockfile accordingly.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5088 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 10/4/2025 **Status:** ✅ Merged **Merged:** 10/5/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/stripe-event` --- ### 📝 Commits (1) - [`97fc7ec`](https://github.com/better-auth/better-auth/commit/97fc7ecf957c33f3d8406b9c625e8fb539a2b639) fix: throw error if event failed to be constructed ### 📊 Changes **5 files changed** (+19 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/page.tsx` (+8 -6) 📝 `docs/package.json` (+1 -0) 📝 `packages/stripe/src/index.ts` (+5 -0) 📝 `pnpm-lock.yaml` (+4 -1) 📝 `pnpm-workspace.yaml` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Improve Stripe webhook handling by throwing a BAD_REQUEST error when the event cannot be constructed. Also updates the docs homepage CTA and pins @better-fetch/fetch for consistent builds. - **Bug Fixes** - Throw APIError("BAD_REQUEST", "Failed to construct event") when Stripe webhook event is undefined before processing. - **Dependencies** - Add @better-fetch/fetch to docs and pin version to 1.1.18 via catalog; update workspace and lockfile accordingly. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:34:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5766