[PR #7010] [MERGED] docs: improve set active organization guide #23921

Closed
opened 2026-04-15 22:03:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7010
Author: @bytaesu
Created: 12/26/2025
Status: Merged
Merged: 12/27/2025
Merged by: @Bekacru

Base: canaryHead: 2025-12-27/docs/initial-active-org


📝 Commits (3)

  • 60fa7c2 docs: improve set active organization guide
  • f4e1625 docs: clearer naming
  • f22e277 docs: clearer helper naming

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 docs/content/docs/plugins/organization.mdx (+4 -3)

📄 Description


Summary by cubic

Updated the organization plugin docs to show how to set the initial active organization on session creation using database hooks. The example uses clearer naming, optional chaining to handle missing orgs, and reminds you to implement custom logic to choose the user's organization.

Written for commit f22e277f9e. Summary will update automatically on new commits.


🔄 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/7010 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 12/26/2025 **Status:** ✅ Merged **Merged:** 12/27/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2025-12-27/docs/initial-active-org` --- ### 📝 Commits (3) - [`60fa7c2`](https://github.com/better-auth/better-auth/commit/60fa7c27d239db85c31039f735f906b123580ab5) docs: improve set active organization guide - [`f4e1625`](https://github.com/better-auth/better-auth/commit/f4e16257c119beb5f3a0a9bc25c73ba1a4e2d70e) docs: clearer naming - [`f22e277`](https://github.com/better-auth/better-auth/commit/f22e277f9e07df2410524ee3bd737e615897fe97) docs: clearer helper naming ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/organization.mdx` (+4 -3) </details> ### 📄 Description - Closes https://github.com/better-auth/better-auth/issues/7005 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the organization plugin docs to show how to set the initial active organization on session creation using database hooks. The example uses clearer naming, optional chaining to handle missing orgs, and reminds you to implement custom logic to choose the user's organization. <sup>Written for commit f22e277f9e07df2410524ee3bd737e615897fe97. Summary will update automatically on new commits.</sup> <!-- 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-15 22:03:52 -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#23921