mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 13:22:35 -07:00
fix (telemetry): inject quota_project_id to prevent fallback to default oauth client (#26698)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
@@ -60,6 +60,10 @@ async function triggerPostAuthCallbacks(tokens: Credentials) {
|
||||
refresh_token: tokens.refresh_token ?? undefined, // Ensure null is not passed
|
||||
type: 'authorized_user',
|
||||
client_email: userAccountManager.getCachedGoogleAccount() ?? undefined,
|
||||
quota_project_id:
|
||||
process.env['GOOGLE_CLOUD_QUOTA_PROJECT'] ||
|
||||
process.env['GOOGLE_CLOUD_PROJECT'] ||
|
||||
process.env['GOOGLE_CLOUD_PROJECT_ID'],
|
||||
};
|
||||
|
||||
// Execute all registered post-authentication callbacks.
|
||||
|
||||
Reference in New Issue
Block a user