[GH-ISSUE #3304] organization.checkSlug documented but not implemented #9563

Closed
opened 2026-04-13 05:04:51 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @gottfrois on GitHub (Jul 8, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3304

Is this suited for github?

  • Yes, this is suited for github

Description:
Even with better-auth (version 1.1.21) configured correctly, the method authClient.organization.checkSlug is documented but missing from the codebase.

import { createAuthClient } from "better-auth/react";
import { organizationClient } from "better-auth/client/plugins";

export const authClient = createAuthClient({
  plugins: [organizationClient()],
});

Calling:

await authClient.organization.checkSlug({ slug: "my-org" });

Docs:
https://www.better-auth.com/docs/plugins/organization#check-if-organization-slug-is-taken

Describe the solution you'd like

checkSlug exists on authClient.organization and returns slug availability.

Describe alternatives you've considered

Writing my own.

Additional context

No response

Originally created by @gottfrois on GitHub (Jul 8, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3304 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. **Description:** Even with `better-auth` (version `1.1.21`) configured correctly, the method `authClient.organization.checkSlug` is documented but missing from the codebase. ```js import { createAuthClient } from "better-auth/react"; import { organizationClient } from "better-auth/client/plugins"; export const authClient = createAuthClient({ plugins: [organizationClient()], }); ``` Calling: ```js await authClient.organization.checkSlug({ slug: "my-org" }); ``` **Docs:** [https://www.better-auth.com/docs/plugins/organization#check-if-organization-slug-is-taken](https://www.better-auth.com/docs/plugins/organization#check-if-organization-slug-is-taken) ### Describe the solution you'd like `checkSlug` exists on `authClient.organization` and returns slug availability. ### Describe alternatives you've considered Writing my own. ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 05:04:51 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 8, 2025):

Hi @gottfrois! I'm Dosu and I’m helping the better-auth team.

You’re correct—authClient.organization.checkSlug is documented but not implemented anywhere in the codebase as of v1.1.21. There are no open issues, pull requests, or roadmap items tracking this, and no official workarounds or alternatives are documented either. This appears to be a documentation bug or a missing feature that would require both backend and client-side work to support it see docs.

If you need this functionality now, you’d have to implement your own slug-check endpoint and wire it up in your client code. There aren’t any existing utilities or endpoints in the codebase you can leverage directly for this purpose. If this feature is critical, keep an eye on future releases in case it gets added.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

<!-- gh-comment-id:3049263908 --> @dosubot[bot] commented on GitHub (Jul 8, 2025): <!-- Greeting --> Hi @gottfrois! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the better-auth team. <!-- Answer --> You’re correct—`authClient.organization.checkSlug` is documented but not implemented anywhere in the codebase as of v1.1.21. There are no open issues, pull requests, or roadmap items tracking this, and no official workarounds or alternatives are documented either. This appears to be a documentation bug or a missing feature that would require both backend and client-side work to support it [see docs](https://github.com/better-auth/better-auth/blob/c483fa14db62b3a8d82049a167f9933c0542af7d/docs/content/docs/plugins/organization.mdx). If you need this functionality now, you’d have to implement your own slug-check endpoint and wire it up in your client code. There aren’t any existing utilities or endpoints in the codebase you can leverage directly for this purpose. If this feature is critical, keep an eye on future releases in case it gets added. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/821070c3-f701-4434-98be-c3c90a917850?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/821070c3-f701-4434-98be-c3c90a917850?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/821070c3-f701-4434-98be-c3c90a917850?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/821070c3-f701-4434-98be-c3c90a917850?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/821070c3-f701-4434-98be-c3c90a917850?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/821070c3-f701-4434-98be-c3c90a917850?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/821070c3-f701-4434-98be-c3c90a917850?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/3304)
Author
Owner

@Kinfe123 commented on GitHub (Jul 11, 2025):

please refer to the pr to see how it works - #3345 and make sure to update the version. lmk if there is any reason why you are using the 1.1.21 ?

<!-- gh-comment-id:3061074289 --> @Kinfe123 commented on GitHub (Jul 11, 2025): please refer to the pr to see how it works - #3345 and make sure to update the version. lmk if there is any reason why you are using the 1.1.21 ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9563