Skip to content

Commit

Permalink
Add account parameter to isSignedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger committed Nov 18, 2024
1 parent 159ee98 commit 4d5308a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auth/src/VSCodeAzureSubscriptionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class VSCodeAzureSubscriptionProvider extends vscode.Disposable implement
}

// If the user is not signed in to this tenant, then skip it
if (!(await this.isSignedIn(tenantId))) {
if (!(await this.isSignedIn(tenantId, account))) {
continue;
}

Expand Down Expand Up @@ -140,8 +140,8 @@ export class VSCodeAzureSubscriptionProvider extends vscode.Disposable implement
*
* @returns True if the user is signed in, false otherwise.
*/
public async isSignedIn(tenantId?: string): Promise<boolean> {
const session = await getSessionFromVSCode([], tenantId, { createIfNone: false, silent: true });
public async isSignedIn(tenantId?: string, account?: vscode.AuthenticationSessionAccountInformation): Promise<boolean> {
const session = await getSessionFromVSCode([], tenantId, { createIfNone: false, silent: true, account });
return !!session;
}

Expand Down

0 comments on commit 4d5308a

Please sign in to comment.