Skip to content

Commit 0c72222

Browse files
committed
1 parent fb2707a commit 0c72222

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/cli/commands/auth.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ export async function login(
4545
if (options.clientSecret) {
4646
clientCredentials.clientSecret = options.clientSecret;
4747
}
48-
const result = await performOAuthFlow(normalizedUrl, profileName, options.scope, clientCredentials);
48+
const result = await performOAuthFlow(
49+
normalizedUrl,
50+
profileName,
51+
options.scope,
52+
clientCredentials
53+
);
4954

5055
if (options.outputMode === 'human') {
5156
console.log(formatSuccess('Authentication successful!'));

src/lib/auth/oauth-flow.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,7 @@ export async function performOAuthFlow(
319319
// Delete existing OAuth client info from keychain before re-authenticating
320320
// This ensures we get a fresh client-id with the correct redirect URI
321321
// (old client-id might have been registered with different redirect URI)
322-
logger.debug(
323-
`Removing existing OAuth client info for ${profileName} @ ${normalizedServerUrl}`
324-
);
322+
logger.debug(`Removing existing OAuth client info for ${profileName} @ ${normalizedServerUrl}`);
325323
await removeKeychainOAuthClientInfo(normalizedServerUrl, profileName);
326324
}
327325

0 commit comments

Comments
 (0)