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

    SDK-based authentication provider for VS Code. Manages authentication state and provides event notifications for state changes.

    const authProvider = new SDKAuthProvider(sdk, context, logger);
    await authProvider.initialize();
    authProvider.onAuthStateChanged((state) => {
    // Auth state changed
    });

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _authState: VSCodeAuthState = ...
    _onAuthStateChanged: EventEmitter<VSCodeAuthState> = ...
    context: ExtensionContext
    logger: ILogger

    Logger instance for this service

    name: string

    Service name for logging

    oauthFlowManager: OAuthFlowManager
    onAuthStateChanged: Event<VSCodeAuthState> = ...

    Event fired when authentication state changes.

    sdk: DatalayerClient

    Accessors

    Methods

    • Implementation of BaseService lifecycle initialization. Tries to restore session from SDK storage (OS keyring). Falls back to migrating from old VS Code secrets if found.

      Returns Promise<void>