From faad6bc10a9f9f10aba5c6714e75cf9d70212e25 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Tue, 21 Feb 2023 13:00:05 -0600 Subject: [PATCH] fix: fix more flags --- src/commands/auth/device/login.ts | 2 +- src/commands/auth/web/login.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/auth/device/login.ts b/src/commands/auth/device/login.ts index 7da6afd7..1b41bb7e 100644 --- a/src/commands/auth/device/login.ts +++ b/src/commands/auth/device/login.ts @@ -71,7 +71,7 @@ export default class Login extends AuthBaseCommand { if (await this.shouldExitCommand(false)) return {}; const oauthConfig: OAuth2Config = { - loginUrl: await Common.resolveLoginUrl(get(flags.instanceurl, 'href', null) as Optional), + loginUrl: await Common.resolveLoginUrl(get(flags['instance-url'], 'href', null) as Optional), clientId: flags['client-id'] as string, }; diff --git a/src/commands/auth/web/login.ts b/src/commands/auth/web/login.ts index c8d03fd2..1378ea99 100644 --- a/src/commands/auth/web/login.ts +++ b/src/commands/auth/web/login.ts @@ -93,10 +93,10 @@ export default class Login extends AuthBaseCommand { const oauthConfig: OAuth2Config = { loginUrl: await Common.resolveLoginUrl(get(flags['instance-url'], 'href', null) as Optional), - clientId: flags.clientid as string, + clientId: flags['client-id'] as string, }; - if (flags.clientid) { + if (flags['client-id']) { oauthConfig.clientSecret = await this.askForClientSecret(flags['disable-masking']); }