Get the access token for API calls.
The access token or undefined if not authenticated
Get the current authentication state.
Initiates the OAuth Device Flow. Returns device code information for the UI to display.
OptionalenterpriseUrl: stringOptional GitHub Enterprise domain
Polls for the access token after user authorizes.
The device code from initiateDeviceFlow
Polling interval in seconds
OptionalenterpriseUrl: stringOptional GitHub Enterprise domain
true if authentication succeeded, false if expired/denied
Set the client to receive auth state change notifications.
Sign out and clear stored credentials.
Service for handling GitHub Copilot OAuth Device Flow authentication.