Skip to content

add SwitchOrg helper for org re-authentication - #64

Open
asherMuneer97 wants to merge 1 commit into
mainfrom
feat/re-authentication
Open

add SwitchOrg helper for org re-authentication#64
asherMuneer97 wants to merge 1 commit into
mainfrom
feat/re-authentication

Conversation

@asherMuneer97

@asherMuneer97 asherMuneer97 commented Sep 3, 2026

Copy link
Copy Markdown

Adds a URL builder that redirects users into a target organization with prompt=login so the new org context is applied after callback.

Explain your changes

Adds a SwitchOrg(orgCode) helper that builds the auth URL for switching a user into a different organization. It sets org_code to the target org and forces prompt=login
(overriding any prompt already configured on the flow) so the callback re-authenticates in the new org's context instead of silently reusing the old session.

Added two tests: one checks org_code and prompt=login show up correctly alongside other configured auth params, the other checks it overrides a previously set prompt
value.

Checklist

Adds a URL builder that redirects users into a target organization with
prompt=login so the new org context is applied after callback.
@asherMuneer97
asherMuneer97 requested a review from a team as a code owner September 3, 2026 07:41
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 86cce8eb-4274-4c00-ad96-33f480e41abd


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant