Protected ReadonlyloggerLogger instance for this service.
Protected ReadonlynameService name for logging.
ReadonlyonEvent fired when authentication state changes.
Gets the current service state.
ProtectedassertDisposes the service and cleans up resources. Ensures disposal only happens once.
Get current user (null if not authenticated). Delegates to Datalayer's authentication manager.
Current user DTO or null if not authenticated.
Get authentication token from Datalayer.
The current authentication token, or empty string.
Initializes the service. Ensures initialization only happens once and tracks state.
Check if currently authenticated. Delegates to Datalayer's authentication manager.
True if the user is currently authenticated.
Login using email/password credentials. Prompts for credentials and authenticates with platform.
Login using OAuth provider. Opens browser for OAuth flow and handles callback.
OAuth provider to authenticate with.
Logout and clear authentication state. Datalayer clears keyring storage automatically.
ProtectedonImplementation of BaseService lifecycle disposal. Cleans up event emitters, OAuth manager, and auth state.
ProtectedonImplementation of BaseService lifecycle initialization. Tries to restore session from Datalayer storage (OS keyring). Falls back to migrating from old VS Code secrets if found.
Shows authentication status with interactive options. Displays different options based on current authentication state. Includes help and feedback links for users.
Show login method selection dialog. Presents user with choice of email/password or OAuth providers.
The selected auth method, or undefined if cancelled.
Datalayer-based authentication provider for VS Code. Manages authentication state and provides event notifications for state changes.