Fix getSessions for microsoft auth provider

This commit is contained in:
Rachel Macfarlane 2021-02-11 16:46:32 -08:00
parent eceff53351
commit 263d4b75e2

View file

@ -303,7 +303,7 @@ export class AzureActiveDirectoryService {
async getSessions(scopes: string[]): Promise<vscode.AuthenticationSession[]> {
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<vscode.AuthenticationSession> {