[PR #2608] [CLOSED] fix: ensure activeOrganizationId is stored as a ObjectId #21298

Closed
opened 2026-04-15 20:15:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2608
Author: @SoloDevAbu
Created: 5/10/2025
Status: Closed

Base: canaryHead: fix-active-orgid-type


📝 Commits (1)

  • 425d889 fix: add reference on activeOrganizationId

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/organization.ts (+4 -0)

📄 Description

Added the reference field for MongoDB adapter to store the activeOrganizationId as ObjectId instead of string


🔄 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/2608 **Author:** [@SoloDevAbu](https://github.com/SoloDevAbu) **Created:** 5/10/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix-active-orgid-type` --- ### 📝 Commits (1) - [`425d889`](https://github.com/better-auth/better-auth/commit/425d889dc59cf02c473c188f83419851566740d2) fix: add reference on `activeOrganizationId` ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+4 -0) </details> ### 📄 Description Added the reference field for MongoDB adapter to store the activeOrganizationId as ObjectId instead of string --- <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-15 20:15: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#21298