ProtectedcachedProtected ReadonlycliProtectedclientProtected ReadonlycliProtected ReadonlycredentialProtectedlegacyProtected ReadonlyloggerProtectedmigrationReadonlyonEvent fired when authentication state changes.
Protected ReadonlyonAborts a sign-in that is still in progress, if any.
ProtectedcomputeThe state as it currently is, with the request for a new sign-in attached when the credentials of the previous integration had to be discarded and none have been established since.
Does not await the cleanup, so that it can be used from it.
Get the current authentication state.
ProtectedinitSet 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
ProtectedupdateWaits for the sign-in started by startSignIn to complete.
true if the sign-in succeeded, false if it was denied or expired
Backend implementation of the GitHub Copilot authentication service.
All Copilot requests are served by the official Copilot CLI, which owns its credentials, so this service only drives the sign-in of the CLI and reports its state, see CopilotCliAuthProvider.