4

I accidentally logged into the wrong account when setting up GitHub's Copilot in PhpStorm.

  • I tried uninstalling the plugin and restarting.
  • I tried selecting a different GitHub account in the Copilot settings.
  • Other posts have suggested there is a logout button/link in the Copilot settings, but that is not in my PhpStorm 2024.3.1.1 Copilot settings.

How do I disconnect the wrong GitHub account so I can use the one I'm actually paying for Copilot on?

5
  • I'm not using Copilot so cannot help directly. But I can suggest to try the following (in case you are still unable to locate the log out button): 1) Exit the IDE; 2) Go to the folder where the IDE-wide settings are stored (see this link for details; 3) go into options folder and look for a config file that can be related to copilot (or perhaps GitHub). It should be a XML file -- see if you can spot the login there. If anything -- try deleting the file. Commented Dec 27, 2024 at 11:10
  • This may not work that well if you are using the bundled plugin to sync your IDE settings to the cloud (JetBrains account). If it's the case -- try disabling such sync first (and restart the IDE) ... or check for the same files in a settingsSync folder there (in addition to the aforementioned options one). Commented Dec 27, 2024 at 11:11
  • None of that worked. There also isn't a settingsSync file or folder anywhere on my Mac. However, I did notice that despite the fact that a popup says I'm logged into Github, it was apparently fake news. I noticed the login link in the settings and logged into the correct account. When I did this, it also displayed a logout link I could use. Commented Dec 28, 2024 at 19:00
  • This answer solved issue in my case: stackoverflow.com/a/78998301/11030016 Commented Jan 13 at 13:27
  • @DamianJK, your advice didn't help me. And it was because I was trying to integrate MCP server with my webstorm. To do that I've added GITHUB_ACCESS_TOKEN to my env variables on windows. It appeared it interferred with the session info. Once I removed the env variable, after restart copilot started behaving as it should Commented Sep 1 at 10:54

1 Answer 1

11

I had similar issue on my Mac with PyCharm and and finally found the solution. Default user data is stored in the following file: /Users/<your_user_name>/.config/github-copilot/apps.json

Open the file and remove saved entry. You will need to re-authenticate again.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.