[PR #6386] [CLOSED] fix(org): update client schema types to allow all server schema options #6631

Closed
opened 2026-03-13 13:06:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6386
Author: @jonathansamines
Created: 11/28/2025
Status: Closed

Base: canaryHead: fix/organization-client-schema-inference


📝 Commits (1)

  • da9784f fix: update client schema types to allow all server schema options

📊 Changes

2 files changed (+2 additions, -30 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/client.ts (+1 -30)
📝 packages/better-auth/src/plugins/organization/routes/crud-access-control.test.ts (+1 -0)

📄 Description

What is changing?
Updating organization client to support al server schema options. Otherwise, inference breaks as soon as you use an option that is only available to the server.

See related issue.


Summary by cubic

Aligns the organization client schema types with the server schema so type inference doesn’t break when using server-only options. The client now accepts all server schema options.

  • Bug Fixes
    • Use OrganizationOptions["schema"] for OrganizationClientOptions.schema to match server types.
    • Update test to include organizationRole.modelName to reflect the expanded schema.

Written for commit da9784fd35. Summary will update automatically on new commits.


🔄 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/6386 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 11/28/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/organization-client-schema-inference` --- ### 📝 Commits (1) - [`da9784f`](https://github.com/better-auth/better-auth/commit/da9784fd353af230f0887e5779f6befbbcfc6f96) fix: update client schema types to allow all server schema options ### 📊 Changes **2 files changed** (+2 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/client.ts` (+1 -30) 📝 `packages/better-auth/src/plugins/organization/routes/crud-access-control.test.ts` (+1 -0) </details> ### 📄 Description **What is changing?** Updating organization client to support al server schema options. Otherwise, inference breaks as soon as you use an option that is only available to the server. See [related issue](https://discord.com/channels/1288403910284935179/1443985134452998239). <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Aligns the organization client schema types with the server schema so type inference doesn’t break when using server-only options. The client now accepts all server schema options. - **Bug Fixes** - Use OrganizationOptions["schema"] for OrganizationClientOptions.schema to match server types. - Update test to include organizationRole.modelName to reflect the expanded schema. <sup>Written for commit da9784fd353af230f0887e5779f6befbbcfc6f96. Summary will update automatically on new commits.</sup> <!-- 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-03-13 13:06:08 -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#6631