summaryrefslogtreecommitdiff
path: root/packages/cli/src/validateNonInterActiveAuth.ts
diff options
context:
space:
mode:
authorRichie Foreman <[email protected]>2025-08-17 12:43:21 -0400
committerGitHub <[email protected]>2025-08-17 16:43:21 +0000
commit2998f27f703282359f6389d1c2d8758fc6a14955 (patch)
treea7e3ff7f969c44e61ab27240cdd615e291b6deae /packages/cli/src/validateNonInterActiveAuth.ts
parentec1fa954d18ec9abab3ce669536dd24559a499f1 (diff)
chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/validateNonInterActiveAuth.ts')
-rw-r--r--packages/cli/src/validateNonInterActiveAuth.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/cli/src/validateNonInterActiveAuth.ts b/packages/cli/src/validateNonInterActiveAuth.ts
index 7e80b30e..33b965b7 100644
--- a/packages/cli/src/validateNonInterActiveAuth.ts
+++ b/packages/cli/src/validateNonInterActiveAuth.ts
@@ -9,13 +9,13 @@ import { USER_SETTINGS_PATH } from './config/settings.js';
import { validateAuthMethod } from './config/auth.js';
function getAuthTypeFromEnv(): AuthType | undefined {
- if (process.env.GOOGLE_GENAI_USE_GCA === 'true') {
+ if (process.env['GOOGLE_GENAI_USE_GCA'] === 'true') {
return AuthType.LOGIN_WITH_GOOGLE;
}
- if (process.env.GOOGLE_GENAI_USE_VERTEXAI === 'true') {
+ if (process.env['GOOGLE_GENAI_USE_VERTEXAI'] === 'true') {
return AuthType.USE_VERTEX_AI;
}
- if (process.env.GEMINI_API_KEY) {
+ if (process.env['GEMINI_API_KEY']) {
return AuthType.USE_GEMINI;
}
return undefined;