Interface AuthenticationMain
Methods
$getSession
- $getSession(providerId: string, scopes: readonly string[], extensionId: string, extensionName: string, options: AuthenticationGetSessionOptions): Promise<undefined | AuthenticationSession>
Parameters
providerId: string
scopes: readonly string[]
extensionId: string
extensionName: string
options: AuthenticationGetSessionOptions
Returns Promise<undefined | AuthenticationSession>
$onDidChangeSessions
- $onDidChangeSessions(providerId: string, event: AuthenticationProviderAuthenticationSessionsChangeEvent): void
Parameters
providerId: string
event: AuthenticationProviderAuthenticationSessionsChangeEvent
Returns void
$registerAuthenticationProvider
- $registerAuthenticationProvider(id: string, label: string, supportsMultipleAccounts: boolean): void
Parameters
id: string
label: string
supportsMultipleAccounts: boolean
Returns void
$unregisterAuthenticationProvider
- $unregisterAuthenticationProvider(id: string): void