diff --git a/docs/app/page.tsx b/docs/app/page.tsx index f64384bc..059b28f2 100644 --- a/docs/app/page.tsx +++ b/docs/app/page.tsx @@ -34,22 +34,24 @@ export default async function HomePage() {
- Auth.js (formerly NextAuth.js) is now part of{" "} - Better Auth + Introducing{" "} + + Better Auth Infrastructure + | - Read the announcement → + Join the waitlist → - Read the announcement → + Join the waitlist →
diff --git a/docs/package.json b/docs/package.json index 85d82df6..c4274aab 100644 --- a/docs/package.json +++ b/docs/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "@better-auth/utils": "0.3.0", + "@better-fetch/fetch": "catalog:", "@hookform/resolvers": "^5.2.1", "@oramacloud/client": "^2.1.4", "@radix-ui/react-accordion": "^1.2.12", diff --git a/packages/stripe/src/index.ts b/packages/stripe/src/index.ts index 8c2aaf5b..317400c3 100644 --- a/packages/stripe/src/index.ts +++ b/packages/stripe/src/index.ts @@ -1255,6 +1255,11 @@ export const stripe = (options: O) => { message: `Webhook Error: ${err.message}`, }); } + if (!event) { + throw new APIError("BAD_REQUEST", { + message: "Failed to construct event", + }); + } try { switch (event.type) { case "checkout.session.completed": diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e691ea8e..1b7147a3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,7 +7,7 @@ settings: catalogs: default: '@better-fetch/fetch': - specifier: ^1.1.18 + specifier: 1.1.18 version: 1.1.18 better-call: specifier: 1.0.19 @@ -465,6 +465,9 @@ importers: '@better-auth/utils': specifier: 0.3.0 version: 0.3.0 + '@better-fetch/fetch': + specifier: 'catalog:' + version: 1.1.18 '@hookform/resolvers': specifier: ^5.2.1 version: 5.2.1(react-hook-form@7.62.0(react@19.1.1)) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 52573a24..bcde90a0 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -5,7 +5,7 @@ packages: - e2e/** catalog: - '@better-fetch/fetch': ^1.1.18 + '@better-fetch/fetch': 1.1.18 better-call: 1.0.19 typescript: ^5.9.2 unbuild: 3.6.1