You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't allow multi-accounts for GitHub auth while it only supports 1 account #203850
authentication-githubIssues with the GitHub Authentication extensionbugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Does this issue occur when all extensions are disabled?: nonsence?
Accounts are managed by vscode? You need to decide where extensions get the information about which account to log in with.
However, by running without extensions, I understandably cannot verify the login.
Check AAA: Account Manage Trusted Extension - GitHub Copilot - OK working
log to GitHub Pull request with account BBB
Check BBB: Account Manage Trusted Extension - GitHub Pull request- OK both working
restart vscode-insiders
now cannot log to GitHub Copilot because it tries to use account BBB, I've checked log. I must relogin steps 2-5.
Account BBB was used before also for Copilot.
Now I have separate accounts, AAA paid for Copilot and the other BBB for repositories, but it's still not functional after restart.
I need Copilot so that I can manage the repository.
And why is Copilot attempting to use the BBB account for logging in when it doesn't even have the permissions for that by Manage Trusted Extension?
Yeah we only really support a single GitHub account. The fact that you can log in to multiple GitHub accounts is a bug. I'm not really inclined to fix that bug as I would rather spend cycles supporting multi-account in GitHub...
changed the title [-]Using the wrong account to log in to GitHub Copilot.[/-][+]Don't allow multi-accounts for GitHub auth while it only supports 1 account[/+]on Feb 2, 2024
I was truly satisfied with having just one account for all repositories, but with the introduction of Copilot, our company requires having a special account for Copilot, which I cannot avoid, hence the second account.
But I have the Copilot service precisely to be able to write and modify projects from the original account.
It's not a problem to switch accounts, but the issue is having a paid service that stops functioning when I connect to GitHub differently. I want the paid service to work without limitations. Why am I paying for it?
Or is it necessary to move all projects elsewhere so that the Copilot service isn't intertwined with repository management services?
Reacted by Neeraj Kumar, St John Peaster and Pyry Kontio
Agrees with Antonio (@AntonSedlak). I have copilot access on my personal Github account and repo access with my Org Github account. If I install Github PR and issues extension and authenticate it with my org account, it makes copliot useless. For a while in past everything was working seamlessly with copilot extensions authenticated with my personal account and Github Pull Request and Issues with my org account. Now it's all intertwined making paid feature useless.
I'm having the same issue as Neeraj Kumar (@neeraj-ec) above. Copilot sub is on my personal GitHub account because I do contract work for an org who doesn't enable that by default. So I am logged in to two GitHub accounts. And I need to be. It was all working until this week. Now I've lost access to Copilot in my IDE. 🥺 This is a valid use case.
Reacted by yllekz, Yurii, St John Peaster and Yashasewi singh
I frequently have to jettison one of my two signed-in accounts to get Copilot to start working again. This workaround, while functional, is unsustainable due to having to choose between using Github Copilot or the ability to commit/push.
The best approach is to let the Copilot use its authentication protocol, and for the repository, use SSH, after you setup ssh login, change local repository with git remote set-url.
Then there shouldn't be an issue using Copilot everywhere until VSCode resolves different logins for different services.
This doesn't solve a problem, only puts a bandaid on a bigger issue. We have valid use cases to authenticate into extensions with different GitHub accounts. This needs to be supported.
I want to set some expectation that multi-account for GitHub isn't supported today... and the workarounds folks have suggested have left users in confusing places and this has to be dealt with, which is what this issue tracks. Making it clear that we only support 1 account, at this time.
We do want to support multi-account and it's something we'd like to make progress on in the near future. It's not as simple as it sounds... check this comment of mine when I investigated the work involved: #127967 (comment)
Until we can iron out the details and do this work in such a way that it makes sense, I want VS Code to be clear in what it supports.
The workaround I can recommend is installing VS Code & VS Code Insiders side-by-side and log in to two separate GitHub accounts there. Additionally, you could even use Settings Sync (with a common Microsoft account) so that your settings are synced between the two of them so it's easy to switch off.
Reacted by Ryan Berry, William Rapha and Marco Lecheler
Reacted by Ivailo Karamanolev, WarpedPixel, jamesSnapOn, Javier Bermejo, Wait What, 0xbadbee, Benjamin Solum, rob-field1, nom3ad, youssefhany and 4 more
authentication-githubIssues with the GitHub Authentication extensionbugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Activity
gjsjohnmurray commentedon Jan 31, 2024
Sounds like a duplicate of #127967
TylerLeonhardt commentedon Feb 2, 2024
Yeah we only really support a single GitHub account. The fact that you can log in to multiple GitHub accounts is a bug. I'm not really inclined to fix that bug as I would rather spend cycles supporting multi-account in GitHub...
[-]Using the wrong account to log in to GitHub Copilot.[/-][+]Don't allow multi-accounts for GitHub auth while it only supports 1 account[/+]AntonSedlak commentedon Feb 6, 2024
I was truly satisfied with having just one account for all repositories, but with the introduction of Copilot, our company requires having a special account for Copilot, which I cannot avoid, hence the second account.
But I have the Copilot service precisely to be able to write and modify projects from the original account.
It's not a problem to switch accounts, but the issue is having a paid service that stops functioning when I connect to GitHub differently. I want the paid service to work without limitations. Why am I paying for it?
Or is it necessary to move all projects elsewhere so that the Copilot service isn't intertwined with repository management services?
neeraj-ec commentedon Feb 9, 2024
Agrees with Antonio (@AntonSedlak). I have copilot access on my personal Github account and repo access with my Org Github account. If I install Github PR and issues extension and authenticate it with my org account, it makes copliot useless. For a while in past everything was working seamlessly with copilot extensions authenticated with my personal account and Github Pull Request and Issues with my org account. Now it's all intertwined making paid feature useless.
DarKowGit commentedon Feb 10, 2024
I'm having the same issue as Neeraj Kumar (@neeraj-ec) above. Copilot sub is on my personal GitHub account because I do contract work for an org who doesn't enable that by default. So I am logged in to two GitHub accounts. And I need to be. It was all working until this week. Now I've lost access to Copilot in my IDE. 🥺 This is a valid use case.
yllekz commentedon Feb 13, 2024
I frequently have to jettison one of my two signed-in accounts to get Copilot to start working again. This workaround, while functional, is unsustainable due to having to choose between using Github Copilot or the ability to commit/push.
karnigen commentedon Feb 13, 2024
The best approach is to let the Copilot use its authentication protocol, and for the repository, use SSH, after you setup ssh login, change local repository with
git remote set-url.Then there shouldn't be an issue using Copilot everywhere until VSCode resolves different logins for different services.
StJohn3D commentedon Mar 4, 2024
This doesn't solve a problem, only puts a bandaid on a bigger issue. We have valid use cases to authenticate into extensions with different GitHub accounts. This needs to be supported.
Make sure the same GitHub account is used until we support multiple G…
TylerLeonhardt commentedon Mar 4, 2024
I want to set some expectation that multi-account for GitHub isn't supported today... and the workarounds folks have suggested have left users in confusing places and this has to be dealt with, which is what this issue tracks. Making it clear that we only support 1 account, at this time.
We do want to support multi-account and it's something we'd like to make progress on in the near future. It's not as simple as it sounds... check this comment of mine when I investigated the work involved:
#127967 (comment)
Until we can iron out the details and do this work in such a way that it makes sense, I want VS Code to be clear in what it supports.
The workaround I can recommend is installing VS Code & VS Code Insiders side-by-side and log in to two separate GitHub accounts there. Additionally, you could even use Settings Sync (with a common Microsoft account) so that your settings are synced between the two of them so it's easy to switch off.
Make sure the same GitHub account is used until we support multiple G…
Make sure the same GitHub account is used until we support multiple G…