[PR #8322] Issue 8307 validation #7899

Open
opened 2026-03-13 13:52:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8322
Author: @himself65
Created: 3/3/2026
Status: 🔄 Open

Base: canaryHead: cursor/issue-8307-validation-79a3


📝 Commits (1)

  • 32b4fe7 fix(organization): include team members in getFullOrganization response

📊 Changes

4 files changed (+79 additions, -4 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/adapter.ts (+25 -1)
📝 packages/better-auth/src/plugins/organization/organization.test.ts (+24 -1)
📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+3 -2)
📝 packages/better-auth/src/plugins/organization/team.test.ts (+27 -0)

📄 Description

Include team members in getFullOrganization response and update related types and tests.

This PR resolves #8307 by ensuring that auth.api.getFullOrganization() returns team-member relationship data, allowing clients to know which members belong to which teams without additional API calls.


Slack Thread

Open in Web Open in Cursor 


🔄 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/8322 **Author:** [@himself65](https://github.com/himself65) **Created:** 3/3/2026 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `cursor/issue-8307-validation-79a3` --- ### 📝 Commits (1) - [`32b4fe7`](https://github.com/better-auth/better-auth/commit/32b4fe78bdc4009ac1f5dc1df3dbae9b7c9463bd) fix(organization): include team members in getFullOrganization response ### 📊 Changes **4 files changed** (+79 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/adapter.ts` (+25 -1) 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+24 -1) 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+3 -2) 📝 `packages/better-auth/src/plugins/organization/team.test.ts` (+27 -0) </details> ### 📄 Description <!-- CURSOR_AGENT_PR_BODY_BEGIN --> Include team members in `getFullOrganization` response and update related types and tests. This PR resolves #8307 by ensuring that `auth.api.getFullOrganization()` returns team-member relationship data, allowing clients to know which members belong to which teams without additional API calls. --- [Slack Thread](https://betterauth.slack.com/archives/C0A8B5BARUK/p1772525506017609?thread_ts=1772525506.017609&cid=C0A8B5BARUK) <p><a href="https://cursor.com/agents/bc-2ee54af4-9303-5955-ad7b-d93854e2bc8b"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/background-agent?bcId=bc-2ee54af4-9303-5955-ad7b-d93854e2bc8b"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</p> <!-- CURSOR_AGENT_PR_BODY_END --> --- <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 13:52:37 -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#7899