Skip to content

Commit

Permalink
fix: fix more flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Feb 21, 2023
1 parent a779339 commit faad6bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/auth/device/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class Login extends AuthBaseCommand<DeviceLoginResult> {
if (await this.shouldExitCommand(false)) return {};

const oauthConfig: OAuth2Config = {
loginUrl: await Common.resolveLoginUrl(get(flags.instanceurl, 'href', null) as Optional<string>),
loginUrl: await Common.resolveLoginUrl(get(flags['instance-url'], 'href', null) as Optional<string>),
clientId: flags['client-id'] as string,
};

Expand Down
4 changes: 2 additions & 2 deletions src/commands/auth/web/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ export default class Login extends AuthBaseCommand<AuthFields> {

const oauthConfig: OAuth2Config = {
loginUrl: await Common.resolveLoginUrl(get(flags['instance-url'], 'href', null) as Optional<string>),
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']);
}

Expand Down

0 comments on commit faad6bc

Please sign in to comment.