[PR #5955] feat(organization): slug optional #14594

Closed
opened 2026-04-13 09:32:16 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5955

State: closed
Merged: No


Enables organizations to be created without a slug. Continues to check slug when provided. Organizations may simply utilize the organization id if needed for URLs.

Closes
#6662


Summary by cubic

Organizations can now be created without a slug. Slug uniqueness is only checked when provided, and docs/types/schema mark slug as optional.

  • Migration
    • Make slug optional/nullable in your database and API responses.
    • Use organization id for URLs when no slug is set.

Written for commit 7d511d9340. Summary will update on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5955 **State:** closed **Merged:** No --- Enables organizations to be created without a `slug`. Continues to check `slug` when provided. Organizations may simply utilize the organization `id` if needed for URLs. Closes #6662 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Organizations can now be created without a slug. Slug uniqueness is only checked when provided, and docs/types/schema mark slug as optional. - **Migration** - Make slug optional/nullable in your database and API responses. - Use organization id for URLs when no slug is set. <sup>Written for commit 7d511d934018cf59021bd4150dd51b99a3f440e8. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:16 -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#14594