Datalayer VS Code Extension - v0.0.17
    Preparing search index...

    Manages OAuth authentication flows adapted for VS Code.

    Unlike browser-based OAuth flows, VS Code requires:

    • Opening system browser instead of popup window
    • Custom URI handler for OAuth callbacks
    • State-based CSRF protection
    • Timeout handling for abandoned flows

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    logger: ILogger

    Logger instance for this service.

    name: string

    Service name for logging.

    Accessors

    • get callbackUri(): string

      Callback URI for OAuth flows, using the host editor's URI scheme.

      Returns string

      Callback URI (e.g. vscode://extensionId/auth or windsurf://extensionId/auth).

    Methods

    • Starts an OAuth authentication flow by generating a state parameter, opening the browser to the authorization URL, waiting for the callback, and returning the authentication token.

      Parameters

      • provider: OAuthProvider

        OAuth provider (github, google, or linkedin).

      Returns Promise<OAuthResult>

      Promise that resolves with authentication token.

      Error if flow times out, is cancelled, or fails.