[PR #3564] [MERGED] feat(org): additional fields support separate client-server projects #13131

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

📋 Pull Request Information

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

Base: nextHead: feat/org/additional-fields-pass-schema-directly


📝 Commits (1)

  • b49a98f feat(org): additional fields support separate client-server projects

📊 Changes

3 files changed (+61 additions, -10 deletions)

View changed files

📝 docs/content/docs/plugins/organization.mdx (+17 -0)
📝 packages/better-auth/src/plugins/organization/client.ts (+11 -5)
📝 packages/better-auth/src/plugins/organization/organization.test.ts (+33 -5)

📄 Description

With this, users with their auth separated in different projects can still support org additional fields inference on the client plugin.

image

Summary by cubic

Added support for passing the organization schema directly to the client plugin, allowing additional fields inference in setups with separate client and server projects.

  • Docs

    • Updated documentation with usage examples for direct schema passing.
  • Tests

    • Added tests to cover the new schema inference method.

🔄 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/3564 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 7/23/2025 **Status:** ✅ Merged **Merged:** 7/24/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `next` ← **Head:** `feat/org/additional-fields-pass-schema-directly` --- ### 📝 Commits (1) - [`b49a98f`](https://github.com/better-auth/better-auth/commit/b49a98f6463739720824b9cbe68665026a2562b3) feat(org): additional fields support separate client-server projects ### 📊 Changes **3 files changed** (+61 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/organization.mdx` (+17 -0) 📝 `packages/better-auth/src/plugins/organization/client.ts` (+11 -5) 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+33 -5) </details> ### 📄 Description With this, users with their `auth` separated in different projects can still support org additional fields inference on the client plugin. <img width="887" height="378" alt="image" src="https://github.com/user-attachments/assets/59014df5-db60-4293-a90e-a2f0ed2c131e" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added support for passing the organization schema directly to the client plugin, allowing additional fields inference in setups with separate client and server projects. - **Docs** - Updated documentation with usage examples for direct schema passing. - **Tests** - Added tests to cover the new schema inference method. <!-- 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:46:33 -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#13131