[PR #3491] [MERGED] fix(organization): multi teams breaking active organization id type inference #13102

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3491
Author: @Bekacru
Created: 7/20/2025
Status: Merged
Merged: 7/20/2025
Merged by: @Bekacru

Base: mainHead: fix/org-types


📝 Commits (2)

  • 7cc4140 fix(organization): multi teams breaking active organization id type inference
  • 6ab99a5 fix: type

📊 Changes

2 files changed (+20 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/organization.ts (+19 -1)
📝 packages/better-auth/src/types/types.test.ts (+1 -0)

📄 Description

closes #3490


Summary by cubic

Fixed a type inference issue where enabling multi-team support broke the active organization ID type in the organization plugin.


🔄 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/3491 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 7/20/2025 **Status:** ✅ Merged **Merged:** 7/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/org-types` --- ### 📝 Commits (2) - [`7cc4140`](https://github.com/better-auth/better-auth/commit/7cc4140ea327398b6f7fcbf2d3dd6f09b6f76c1f) fix(organization): multi teams breaking active organization id type inference - [`6ab99a5`](https://github.com/better-auth/better-auth/commit/6ab99a53a42be1ed08a645862ca7b8909a275743) fix: type ### 📊 Changes **2 files changed** (+20 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+19 -1) 📝 `packages/better-auth/src/types/types.test.ts` (+1 -0) </details> ### 📄 Description closes #3490 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed a type inference issue where enabling multi-team support broke the active organization ID type in the organization plugin. <!-- 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:45:13 -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#13102