From 263d4b75e2132a376dae1ab4f44092054bf49d76 Mon Sep 17 00:00:00 2001 From: Rachel Macfarlane Date: Thu, 11 Feb 2021 16:46:32 -0800 Subject: [PATCH] Fix getSessions for microsoft auth provider --- extensions/microsoft-authentication/src/AADHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/microsoft-authentication/src/AADHelper.ts b/extensions/microsoft-authentication/src/AADHelper.ts index cd8b66075fc..fbb4e10a0e8 100644 --- a/extensions/microsoft-authentication/src/AADHelper.ts +++ b/extensions/microsoft-authentication/src/AADHelper.ts @@ -303,7 +303,7 @@ export class AzureActiveDirectoryService { async getSessions(scopes: string[]): Promise { const orderedScopes = scopes.sort().join(' '); const matchingTokens = this._tokens.filter(token => token.scope === orderedScopes); - return Promise.all(this._tokens.map(token => this.convertToSession(token))); + return Promise.all(matchingTokens.map(token => this.convertToSession(token))); } public async createSession(scope: string): Promise {