[PR #3708] [CLOSED] Fix/3695 set active org slug resolve step #13213

Closed
opened 2026-04-13 08:49:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3708
Author: @RobiMez
Created: 7/30/2025
Status: Closed

Base: mainHead: fix/3695-SetActiveOrg-slug-resolve


📝 Commits (7)

  • 8c2274e fix(3695): Adds a slug resolution step in the case where slug is provided but not id
  • cfb5248 chore: add changeset
  • 557fd4f chore: cubic
  • 6cebae9 chore: lint
  • b76df0a chore: remove comments
  • da1d6a3 Merge branch 'main' into fix/3695-SetActiveOrg-slug-resolve
  • 9610f79 update changeset

📊 Changes

2 files changed (+34 additions, -14 deletions)

View changed files

.changeset/odd-apples-judge.md (+5 -0)
📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+29 -14)

📄 Description

Adds a slug resolution step where slugs get converted to ids in the case where a slug is provided but not an id on setactiveorg


Summary by cubic

Added a step to resolve organization slugs to IDs when only a slug is provided in setActiveOrganization, fixing cases where the ID is missing.

  • Bug Fixes
  • Ensures setActiveOrganization works when given a slug instead of an ID.

🔄 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/3708 **Author:** [@RobiMez](https://github.com/RobiMez) **Created:** 7/30/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/3695-SetActiveOrg-slug-resolve` --- ### 📝 Commits (7) - [`8c2274e`](https://github.com/better-auth/better-auth/commit/8c2274e9c8e492ac8265e225875e471996ecef4e) fix(3695): Adds a slug resolution step in the case where slug is provided but not id - [`cfb5248`](https://github.com/better-auth/better-auth/commit/cfb5248cccf9f058a7f06e5d54fcc20500e65d50) chore: add changeset - [`557fd4f`](https://github.com/better-auth/better-auth/commit/557fd4f31d1470143d56c9c099e3423731b20b53) chore: cubic - [`6cebae9`](https://github.com/better-auth/better-auth/commit/6cebae92f71f1eb835706e4de0ca23c30b43ec93) chore: lint - [`b76df0a`](https://github.com/better-auth/better-auth/commit/b76df0a6bc92e578e6bd18f7e9fb8e74f63f1aaa) chore: remove comments - [`da1d6a3`](https://github.com/better-auth/better-auth/commit/da1d6a32fd0014578d4528a18eb686e267aaa449) Merge branch 'main' into fix/3695-SetActiveOrg-slug-resolve - [`9610f79`](https://github.com/better-auth/better-auth/commit/9610f7957635bc9a84db4fd9f8ccfc211920f802) update changeset ### 📊 Changes **2 files changed** (+34 additions, -14 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/odd-apples-judge.md` (+5 -0) 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+29 -14) </details> ### 📄 Description Adds a slug resolution step where slugs get converted to ids in the case where a slug is provided but not an id on setactiveorg <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a step to resolve organization slugs to IDs when only a slug is provided in setActiveOrganization, fixing cases where the ID is missing. - **Bug Fixes** - Ensures setActiveOrganization works when given a slug instead of an ID. <!-- 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-04-13 08:49:34 -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#13213