Aborts a sign-in that is still in progress, if any.
Get the current authentication state.
Set the client to receive auth state change notifications.
Tells the backend where the Copilot CLI is, as configured by the user.
The CLI is not shipped with the application and has to be found on the machine hosting the backend, which cannot read the preferences of the user itself.
Location of the CLI executable, or undefined to search for it
Discards the stored credentials of this application.
Starts the sign-in and resolves once the code the user has to enter is known.
OptionalenterpriseUrl: stringOptional GitHub Enterprise domain
Waits for the sign-in started by startSignIn to complete.
true if the sign-in succeeded, false if it was denied or expired
Service for signing the GitHub Copilot CLI in, which serves all Copilot requests.
The sign-in is a device code flow that the CLI runs and polls itself. This service starts it and reports its progress, so that it can be presented like any other device code flow.