[GH-ISSUE #589] Support for unique organization slugs #25651

Closed
opened 2026-04-17 15:54:09 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @focux on GitHub (Nov 19, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/589

Is your feature request related to a problem? Please describe.
One use case of organizations' slugs, it's to be used to generate unique links for each organization and for this to work, we need each slug to be unique and we also need to have a way to check whether a slug is already being used from the client.

Describe the solution you'd like
The ideal solution for me, would be to make the organization slug column unique, and also adding a new function to the client to check if a slug is already taken.

Describe alternatives you've considered
The current alternative is to manually make the column unique and create an API to check whether a slug is taken.

Originally created by @focux on GitHub (Nov 19, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/589 **Is your feature request related to a problem? Please describe.** One use case of organizations' slugs, it's to be used to generate unique links for each organization and for this to work, we need each slug to be unique and we also need to have a way to check whether a slug is already being used from the client. **Describe the solution you'd like** The ideal solution for me, would be to make the organization `slug` column unique, and also adding a new function to the client to check if a slug is already taken. **Describe alternatives you've considered** The current alternative is to manually make the column unique and create an API to check whether a slug is taken.
GiteaMirror added the lockedenhancement labels 2026-04-17 15:54:09 -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#25651