New APIs have been added to make it easier to change the current Organization authorized in a session. These can be used to build common UI patterns like an “Organization Switcher."
The Authenticate with Refresh Token API now accepts an Organization ID parameter, allowing access tokens for existing sessions to be issued for other organization’s that the current session is authorized for.
The Get Authorization URL API now respects the Organization ID parameter when the provider
is set to AuthKit. This will cause the authentication flow to target the provided Organization. When combined with the previous API, developers can enable users to quickly re-authenticate to an Organization with specific constraints, such as requiring SSO.
Check out the documentation to learn more.