[PR #3381] [MERGED] fix(next-cookies): Don't throw in monorepo workspaces #13040

Closed
opened 2026-04-13 08:42:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3381
Author: @ping-maxwell
Created: 7/14/2025
Status: Merged
Merged: 7/14/2025
Merged by: @Bekacru

Base: mainHead: fix/next-cookies/outside-req-scope


📝 Commits (1)

  • bb66eab fix(next-cookies): Don't throw in monorepo workspaces

📊 Changes

1 file changed (+19 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/integrations/next-js.ts (+19 -1)

📄 Description

Summary by cubic

Updated nextCookies to avoid throwing errors when called outside a Next.js request scope, preventing crashes in monorepo workspaces.


🔄 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/3381 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 7/14/2025 **Status:** ✅ Merged **Merged:** 7/14/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/next-cookies/outside-req-scope` --- ### 📝 Commits (1) - [`bb66eab`](https://github.com/better-auth/better-auth/commit/bb66eabf44393e69a3847cc3031b568517b6f2f9) fix(next-cookies): Don't throw in monorepo workspaces ### 📊 Changes **1 file changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/integrations/next-js.ts` (+19 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updated nextCookies to avoid throwing errors when called outside a Next.js request scope, preventing crashes in monorepo workspaces. <!-- 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-04-13 08:42:53 -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#13040