zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.43k stars 65 forks source link

Feature: Change copilot auth #199

Closed bujesse closed 11 months ago

bujesse commented 11 months ago

Description

I recently switched which github account is tied to my copilot license (from personal to work account). There doesn't seem to be a way to change the account from the plugin's perspective.

I get this in the neovim console since my current account no longer has the association: RPC[Error] code_name = unknown, code = 1000, message = "Not authenticated: NotAuthorized"

When I use :Copilot auth in this state I get this popup:

image

When I hit "Copilot Settings", nothing seems to happen.

Possible Solution

A :Copilot command option that allows you to change the github account associated with copilot

bujesse commented 11 months ago

I just found: https://github.com/zbirenbaum/copilot.lua/discussions/122#discussioncomment-4961665

Which points out the :Copilot auth signout option. This worked for me. Perhaps this should be added to the help docs?