Use Env Var directly instead of through GoogleAuth() (#1202)

This commit is contained in:
Tommaso Sciortino
2025-06-18 17:24:46 -07:00
committed by GitHub
parent 8bc3b415c9
commit b49d55584e
4 changed files with 18 additions and 19 deletions

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { AuthClient } from 'google-auth-library';
import { OAuth2Client } from 'google-auth-library';
import {
LoadCodeAssistResponse,
LoadCodeAssistRequest,
@@ -45,7 +45,7 @@ export const CODE_ASSIST_API_VERSION = 'v1internal';
export class CodeAssistServer implements ContentGenerator {
constructor(
readonly auth: AuthClient,
readonly auth: OAuth2Client,
readonly projectId?: string,
readonly httpOptions: HttpOptions = {},
) {}