Respect preferred GitHub account across authentication scopes - #8940
Respect preferred GitHub account across authentication scopes#8940Alex Ross (alexr00) with Copilot wants to merge 2 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
Copilot Can you explain why this happens? As far as I can see we're always asking for a specific auth provider id already. Are you saying that getSession can return a session with a different auth provider ID than we ask for?
No—the provider ID remains |
Account switching could retain credentials from another GitHub identity when accounts had different scope-specific sessions, exposing stale private PRs and causing unauthorized actions under the wrong account.