GitHub Copilot show this error
GitHub Copilot could not connect to server. Extension activation failed: "User not authorized"
But I have authorized on GitHub

This is the scenario that happened to me.
I have multiple github accounts logged into my vscode.
In that only one account has access to the GitHub Copilot.
So in order to give access to the token for the subscribed GitHub copilot, you should go to
1. Click the Accounts section at the bottom left side of the sidebar with a profile icon
2. Choose the GitHub profile you need to deactivate copilot.
3. Click Manage trusted extensions
4. Untick GitHub copilot/nightly.
If you were previously using the Copilot limited invitation access,
as of June 23, mine got deactivated because Github Copilot will be free only until August 22.
I had to activate my free trial here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With