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

    Authentication provider interface. Implementations should handle platform-specific authentication flows.

    interface IAuthProvider {
        onAuthStateChanged: Event<VSCodeAuthState>;
        getAuthState(): VSCodeAuthState;
        getCurrentUser(): User;
        getToken(): string;
        initialize(): Promise<void>;
        isAuthenticated(): boolean;
        login(): Promise<void>;
        logout(): Promise<void>;
        showAuthStatus(): Promise<void>;
    }

    Implemented by

    Index

    Properties

    onAuthStateChanged: Event<VSCodeAuthState>

    Event fired when authentication state changes.

    Methods

    • Initializes authentication state from stored credentials. Should verify existing authentication with the platform.

      Returns Promise<void>