summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useAuthCommand.ts
diff options
context:
space:
mode:
authorMarat Boshernitsan <[email protected]>2025-07-21 16:23:28 -0700
committerGitHub <[email protected]>2025-07-21 23:23:28 +0000
commit5066bc538431482d3e44d1d932909e5a5bc6e69d (patch)
tree9764872215257449486dc84c559f67ca307b6e9b /packages/cli/src/ui/hooks/useAuthCommand.ts
parent97cf26ec5301f7b4552a5e89214a13e4b714b9eb (diff)
Refactor the logic for deciding whether to launch a browser into config (#4622)
Diffstat (limited to 'packages/cli/src/ui/hooks/useAuthCommand.ts')
-rw-r--r--packages/cli/src/ui/hooks/useAuthCommand.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/useAuthCommand.ts b/packages/cli/src/ui/hooks/useAuthCommand.ts
index bb1d68a9..e57a11af 100644
--- a/packages/cli/src/ui/hooks/useAuthCommand.ts
+++ b/packages/cli/src/ui/hooks/useAuthCommand.ts
@@ -11,7 +11,6 @@ import {
Config,
clearCachedCredentialFile,
getErrorMessage,
- shouldAttemptBrowserLaunch,
} from '@google/gemini-cli-core';
import { runExitCleanup } from '../../utils/cleanup.js';
@@ -60,7 +59,7 @@ export const useAuthCommand = (
settings.setValue(scope, 'selectedAuthType', authType);
if (
authType === AuthType.LOGIN_WITH_GOOGLE &&
- (config.getNoBrowser() || !shouldAttemptBrowserLaunch())
+ config.isBrowserLaunchSuppressed()
) {
runExitCleanup();
console.log(