ProtectedcachedProtectedclientProtected ReadonlykeyReadonlyonEvent fired when authentication state changes.
Protected ReadonlyonProtecteddelayProtectedfetchOptionalenterpriseUrl: stringGet the access token for API calls.
The access token or undefined if not authenticated
Get the current authentication state.
ProtectedgetOptionalenterpriseUrl: stringInitiates 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.
Protectedupdate
Backend implementation of the GitHub Copilot OAuth Device Flow authentication service. Handles device code generation, token polling, and credential storage.