How to fix: [ERROR] [extension] GitHub Copilot could not connect to server. Extension activation failed: "Failed to get copilot token"

Hey, I’m having trouble when adding my ssh key to github copilot. I created a new one but I can’t find where to change it.
This is the output on my terminal:

2023-12-13T14:30:09.640Z [INFO] [auth] Logged in as barbaramariani

2023-12-13T14:30:10.024Z [INFO] [auth] Invalid copilot token: missing token: 404

2023-12-13T14:30:10.025Z [ERROR] [extension] GitHub Copilot could not connect to server. Extension activation failed: “Failed to get copilot token”

As an immediate fix, do things work if you login / logout of github using Cmd+P? Or if you restart the editor?

I cannot see the option to logout from github. I’ve tried to reinstall the extension and restart the editor, it’s not working.

The command is called “Sign Out of GitHub”.
image

Or if you set workbench.activityBar.orientation to vertical you should see the normal user icon thing again at the bottom left or top right, which has the GitHub Sign Out button too.