Protected ReadonlykeyProtected ReadonlyloggerStatic ReadonlyACCOUNTThe keystore account name the credentials are stored under.
Static ReadonlyLEGACY_The keystore service name the previous integration stored its OAuth token under.
That token belonged to an OAuth application that is no longer used, so it is useless, and the code that could remove it is gone. It is therefore cleaned up once, rather than left behind on the machine of the user.
Static ReadonlySERVICEThe keystore service name the credentials are stored under.
Removes the credentials of the previous integration, if any are still present.
whether something was removed, so that the user can be told why they are signed out
Where the Copilot credentials of this application are kept.
The credentials are held by the application rather than by the Copilot CLI, so that signing out only has to remove this entry and never has to touch credentials of the user's machine, such as their system keyring entries or their GitHub CLI sign-in.