[GH-ISSUE #1674] The API client.organization.listTeams in the organizational plugin documentation needs to be updated. #8860

Closed
opened 2026-04-13 04:06:03 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @chaocwu on GitHub (Mar 4, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1674

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Image

Current vs. Expected behavior

Doc:
Get all teams in an organization:

const teams = await client.organization.listTeams({
    organizationId: "org-id" // Optional: defaults to active organization
})

Actual:

const teams = await authClient.organization.listTeams({
  query: {
    organizationId: org.id,
  },
});

What version of Better Auth are you using?

1.2.2

Provide environment information

Unimportant

Which area(s) are affected? (Select all that apply)

Client

Additional context

No response

Originally created by @chaocwu on GitHub (Mar 4, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1674 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce ![Image](https://github.com/user-attachments/assets/5df28bd9-c80b-4e9b-8853-92bf0ad86f73) ### Current vs. Expected behavior Doc: Get all teams in an organization: ```typescript const teams = await client.organization.listTeams({ organizationId: "org-id" // Optional: defaults to active organization }) ``` Actual: ```typescript const teams = await authClient.organization.listTeams({ query: { organizationId: org.id, }, }); ``` ### What version of Better Auth are you using? 1.2.2 ### Provide environment information ```bash Unimportant ``` ### Which area(s) are affected? (Select all that apply) Client ### Additional context _No response_
GiteaMirror added the lockedstalebug labels 2026-04-13 04:06:03 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jun 12, 2025):

Hi, @chaocwu. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • The issue highlights a mismatch between the documentation and the implementation of the client.organization.listTeams API.
  • Documentation incorrectly describes the method signature.
  • The code requires a query object containing organizationId.
  • Suggestion to update the documentation for accurate API usage.
  • No comments or activity since the issue was opened.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here.
  • If no updates are provided, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

<!-- gh-comment-id:2967419406 --> @dosubot[bot] commented on GitHub (Jun 12, 2025): Hi, @chaocwu. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - The issue highlights a mismatch between the documentation and the implementation of the `client.organization.listTeams` API. - Documentation incorrectly describes the method signature. - The code requires a `query` object containing `organizationId`. - Suggestion to update the documentation for accurate API usage. - No comments or activity since the issue was opened. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here. - If no updates are provided, the issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8860