mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(telemetry): record onboarding end for cached credentials success
This commit is contained in:
@@ -167,6 +167,7 @@ async function initOauthClient(
|
|||||||
access_token: process.env['GOOGLE_CLOUD_ACCESS_TOKEN'],
|
access_token: process.env['GOOGLE_CLOUD_ACCESS_TOKEN'],
|
||||||
});
|
});
|
||||||
await fetchAndCacheUserInfo(client);
|
await fetchAndCacheUserInfo(client);
|
||||||
|
recordOnboardingEndIfApplicable();
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,6 +204,7 @@ async function initOauthClient(
|
|||||||
debugLogger.log('Loaded cached credentials.');
|
debugLogger.log('Loaded cached credentials.');
|
||||||
await triggerPostAuthCallbacks(credentials as Credentials);
|
await triggerPostAuthCallbacks(credentials as Credentials);
|
||||||
|
|
||||||
|
recordOnboardingEndIfApplicable();
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user