-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Problem
Currently, the SDK architecture appears to limit the application to a single active organization context at any given time.
If a user has access to multiple organizations and needs to perform operations across them, the current implementation forces a sequential workflow: the user must switch contexts (sign out/sign in or switch tenant), perform the task, and repeat. This workflow is inefficient and introduces significant friction for power users or administrative dashboards that require a unified view of resources across multiple organizations.
Ex: Consider a "Super Admin" dashboard where a user manages users or configurations across Organization A and Organization B.
- Current Behavior: The user must explicitly switch to Organization A, make changes, then switch to Organization B.
- Desired Behavior: The user can trigger actions for both Organization A and Organization B in parallel within the same session, without manual context switching.
Proposed Solution
I propose implementing architectural changes to decouple the organization context from the global or singleton state. The SDK should allow for the storage and management of multiple organization contexts independently.
Alternatives
No response
Please select the package issue is related to
@asgardeo/react
@asgardeo/browser
@asgardeo/javascript
Version
N/A
Reporter Checklist
- I have searched the existing issues and this is not a duplicate.
- I have provided all the necessary information.
- I have verified the feature on the latest version of the package.