[GH-ISSUE #9075] Allow opening different organisations in separate browser tabs #11265

Closed
opened 2026-04-13 07:36:46 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @dani-z on GitHub (Apr 9, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/9075

Originally assigned to: @ping-maxwell on GitHub.

Is this suited for github?

  • Yes, this is suited for github

Currently the active organisation is stored in user session. That means a logged in user that has access to multiple organisations cannot open them as separate tabs.
For example, having a URL structure like /[orgId]/some-page is not possible as all orgs will display the organisation set in session, independent of the orgId in the URL.

Is this something you'd maybe have in the pipeline? Or are there any ways to achieve this I couldn't think of?

Describe the solution you'd like

Would be great if this could be achieved using the built-in better-auth organisation plugin.

For example:

  • 3 organisations
  • 3 separate tabs, one org per tab
  • displaying the correct org info in each tab

Describe alternatives you've considered

No response

Additional context

No response

Originally created by @dani-z on GitHub (Apr 9, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/9075 Originally assigned to: @ping-maxwell on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently the active organisation is stored in user session. That means a logged in user that has access to multiple organisations cannot open them as separate tabs. For example, having a URL structure like /[orgId]/some-page is not possible as all orgs will display the organisation set in session, independent of the orgId in the URL. Is this something you'd maybe have in the pipeline? Or are there any ways to achieve this I couldn't think of? ### Describe the solution you'd like Would be great if this could be achieved using the built-in better-auth organisation plugin. For example: - 3 organisations - 3 separate tabs, one org per tab - displaying the correct org info in each tab ### Describe alternatives you've considered _No response_ ### Additional context _No response_
GiteaMirror added the organization label 2026-04-13 07:36:46 -05:00
Author
Owner

@ping-maxwell commented on GitHub (Apr 9, 2026):

This is already possible by not using the session's activeOrganizationId. the activeOrganizationId exists as a convinient way for you to not need to constantly pass organizationId into each organization-related endpoint. In your case if you want support for different orgs per tab then you can just manage state on the client and just pass organizationId into each endpoint call manually

<!-- gh-comment-id:4216970429 --> @ping-maxwell commented on GitHub (Apr 9, 2026): This is already possible by not using the session's `activeOrganizationId`. the activeOrganizationId exists as a convinient way for you to not need to constantly pass `organizationId` into each organization-related endpoint. In your case if you want support for different orgs per tab then you can just manage state on the client and just pass `organizationId` into each endpoint call manually
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#11265