yafeshan ünal
yafeshan ünal

Reputation: 137

Invalid copilot token: missing token: 403

I have been using Copilot for a long time. Yesterday I changed my GitHub password and started getting this error in Copilot:

Invalid copilot token: missing token: 403

I tried logging in and out and reinstalling the IDE, but unfortunately I didn't get any results.

I tried closing and reopening my account and restarting the IDE.

Upvotes: 12

Views: 39389

Answers (5)

Marcelo Luz
Marcelo Luz

Reputation: 540

Try to access https://github.com/settings/tokens and create a new personal access token (classic) with the following permissions:

  • repo
  • user
  • gist
  • copilot

That worked for me.

Upvotes: 1

the_new_mr
the_new_mr

Reputation: 3733

For me, it looks like I had to visit https://github.com/copilot and then signed out and in again with my GitHub account in VS Code.

Upvotes: 0

A.J Mike
A.J Mike

Reputation: 9

Make sure the 'Suggestions matching public code' option should set to Allow.

Upvotes: 0

starball
starball

Reputation: 51402

There are multiple reasons this could be happening.

Upvotes: 8

yafeshan ünal
yafeshan ünal

Reputation: 137

Thanks to everyone, after contacting github support, my account was unmarked and activated.

Upvotes: -2

Related Questions