Interface AuthenticationMain
Methods
$getProviderIds
- $getProviderIds(): Promise<string[]>
-
Returns Promise<string[]>
$getSession
- $getSession(providerId: string, scopes: string[], extensionId: string, extensionName: string, options: { clearSessionPreference?: boolean; createIfNone?: boolean }): Promise<undefined | AuthenticationSession>
-
Parameters
-
providerId: string
-
scopes: string[]
-
extensionId: string
-
extensionName: string
-
options: { clearSessionPreference?: boolean; createIfNone?: boolean }
-
Optional clearSessionPreference?: boolean
-
Optional createIfNone?: boolean
Returns Promise<undefined | AuthenticationSession>
$logout
- $logout(providerId: string, sessionId: string): Promise<void>
-
Parameters
-
providerId: string
-
sessionId: string
Returns Promise<void>
$registerAuthenticationProvider
- $registerAuthenticationProvider(id: string, label: string, supportsMultipleAccounts: boolean): void
-
Parameters
-
id: string
-
label: string
-
supportsMultipleAccounts: boolean
Returns void
$unregisterAuthenticationProvider
- $unregisterAuthenticationProvider(id: string): void