Theia API Documentation v1.65.0
    Preparing search index...
    • Get all accounts that the user is logged in to for the specified provider. Use this paired with getSession in order to get an authentication session for a specific account.

      Currently, there are only two authentication providers that are contributed from built in extensions to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.

      Note: Getting accounts does not imply that your extension has access to that account or its authentication sessions. You can verify access to the account by calling getSession.

      Parameters

      • providerId: string

        The id of the provider to use

      Returns Thenable<readonly AuthenticationSessionAccountInformation[]>

      A thenable that resolves to a readonly array of authentication accounts.