Private_Private_PrivatecontextProtected ReadonlyloggerLogger instance for this service
Protected ReadonlynameService name for logging
PrivateoauthReadonlyonEvent fired when authentication state changes.
PrivatesdkGets 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 SDK's authentication manager.
Get authentication token from SDK.
Initializes the service. Ensures initialization only happens once and tracks state.
Check if currently authenticated. Delegates to SDK's authentication manager.
Login using email/password credentials. Prompts for credentials and authenticates with platform.
Login using OAuth provider. Opens browser for OAuth flow and handles callback.
Logout and clear authentication state. SDK 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 SDK 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.
SDK-based authentication provider for VS Code. Manages authentication state and provides event notifications for state changes.
Example