From 85f290bd1623f8ed6d13e25a80e7346ae1010b4b Mon Sep 17 00:00:00 2001 From: Vincent Cheung <71457708+vcheung-stripe@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:44:49 -0800 Subject: [PATCH] Fix auth check (#837) --- src/stripeClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stripeClient.ts b/src/stripeClient.ts index d84879a5..e99e1111 100644 --- a/src/stripeClient.ts +++ b/src/stripeClient.ts @@ -141,7 +141,7 @@ export class StripeClient { const projectName = vscode.workspace.getConfiguration('stripe').get('projectName', null) || 'default'; try { - const {stdout} = await execa(await this.cliPath, ['config', '--list']); + const {stdout} = await execa(await this.cliPath, ['config', '--list', '--project-name', 'default']); const data = toml.parse(stdout); const hasConfigForProject = projectName in data;