diff options
| author | Marat Boshernitsan <[email protected]> | 2025-07-07 15:02:13 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-07 22:02:13 +0000 |
| commit | 48c2aa296a7ed8b17e861d54682b0ea71695ca66 (patch) | |
| tree | af686139688bfca8e2fd9c7fedb944d012d52ff6 /packages/cli/src/config/auth.ts | |
| parent | 357546a2aac918702f6ebfa4a97bd95ccd614e5d (diff) | |
Enable Gemini CLI to reuse user's auth in Cloud Shell (#3070)
Diffstat (limited to 'packages/cli/src/config/auth.ts')
| -rw-r--r-- | packages/cli/src/config/auth.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/cli/src/config/auth.ts b/packages/cli/src/config/auth.ts index 439bd36b..4561f5d6 100644 --- a/packages/cli/src/config/auth.ts +++ b/packages/cli/src/config/auth.ts @@ -9,7 +9,7 @@ import { loadEnvironment } from './settings.js'; export const validateAuthMethod = (authMethod: string): string | null => { loadEnvironment(); - if (authMethod === AuthType.LOGIN_WITH_GOOGLE) { + if (authMethod === AuthType.LOGIN_WITH_GOOGLE || AuthType.CLOUD_SHELL) { return null; } |
