Skip to main content
Version: main (unreleased)

Switch active organization

POST 

/api/auth/switch-org

Switches the authenticated user's active organization context. Re-issues a new access token (and refresh token) scoped to the chosen org. The user must be a member of the target org

Responses

Switched, new access token set in cookies