Switch the active organization on a session
POST/auth/sessions/switch-organization
Takes a valid refresh token + a target organization the user is a member of,
verifies membership at mint time, revokes the old session, and mints a fresh
access + refresh pair with org_id set to the target. The old refresh token
is invalidated (jti rotated). Use this when the user's active workspace
changes (the Slack/Linear workspace-switch pattern).
Request
Responses
- 200
- 401
- 403
New token pair
Invalid or revoked refresh token
User is not a member of the target organization