Theia API Documentation v1.68.0
    Preparing search index...

    Backend implementation of the GitHub Copilot OAuth Device Flow authentication service. Handles device code generation, token polling, and credential storage.

    Implements

    Index

    Constructors

    Properties

    cachedState: undefined | CopilotAuthState
    client: undefined | CopilotAuthServiceClient
    keyStoreService: KeyStoreService
    onAuthStateChanged: Event<CopilotAuthState> = ...

    Event fired when authentication state changes.

    onAuthStateChangedEmitter: Emitter<CopilotAuthState> = ...

    Methods

    • Polls for the access token after user authorizes.

      Parameters

      • deviceCode: string

        The device code from initiateDeviceFlow

      • interval: number

        Polling interval in seconds

      • OptionalenterpriseUrl: string

        Optional GitHub Enterprise domain

      Returns Promise<boolean>

      true if authentication succeeded, false if expired/denied