diff options
| author | Tommaso Sciortino <[email protected]> | 2025-06-18 17:24:46 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-18 17:24:46 -0700 |
| commit | b49d55584e67d0f147fb0b7e3c9526c2e2ed5ad9 (patch) | |
| tree | 814d8250dd4fbda7b3b0360a28e134ec7468b548 /packages/core/src/code_assist/setup.ts | |
| parent | 8bc3b415c973794654d64d434949a93fb3239acb (diff) | |
Use Env Var directly instead of through GoogleAuth() (#1202)
Diffstat (limited to 'packages/core/src/code_assist/setup.ts')
| -rw-r--r-- | packages/core/src/code_assist/setup.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/core/src/code_assist/setup.ts b/packages/core/src/code_assist/setup.ts index cd1b7ffe..c49a5efa 100644 --- a/packages/core/src/code_assist/setup.ts +++ b/packages/core/src/code_assist/setup.ts @@ -6,14 +6,14 @@ import { ClientMetadata, OnboardUserRequest } from './types.js'; import { CodeAssistServer } from './server.js'; -import { AuthClient } from 'google-auth-library'; +import { OAuth2Client } from 'google-auth-library'; /** * * @param projectId the user's project id, if any * @returns the user's actual project id */ -export async function setupUser(authClient: AuthClient): Promise<string> { +export async function setupUser(authClient: OAuth2Client): Promise<string> { const projectId = process.env.GOOGLE_CLOUD_PROJECT; const caServer = new CodeAssistServer(authClient, projectId); |
