diff options
| author | Gaurav <[email protected]> | 2025-07-11 10:57:35 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-11 17:57:35 +0000 |
| commit | 8f12e8a114546326ee5b39d6aae859da6d906d0b (patch) | |
| tree | 662576a2aa5d4854bb3cdfd467846787500a3e52 /packages/core/src/utils/user_id.ts | |
| parent | 93284281de4a1593de802f3823707b9c1a43171e (diff) | |
fix: clearcut logging (retry #3744) (#3751)
Diffstat (limited to 'packages/core/src/utils/user_id.ts')
| -rw-r--r-- | packages/core/src/utils/user_id.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/core/src/utils/user_id.ts b/packages/core/src/utils/user_id.ts index 42bbee35..6f16806f 100644 --- a/packages/core/src/utils/user_id.ts +++ b/packages/core/src/utils/user_id.ts @@ -56,27 +56,3 @@ export function getInstallationId(): string { return '123456789'; } } - -/** - * Retrieves the obfuscated Google Account ID for the currently authenticated user. - * When OAuth is available, returns the user's cached Google Account ID. Otherwise, returns the installation ID. - * @returns A string ID for the user (Google Account ID if available, otherwise installation ID). - */ -export async function getGoogleAccountId(): Promise<string> { - // Try to get cached Google Account ID first - try { - // Dynamic import to avoid circular dependencies - const { getCachedGoogleAccountId } = await import( - '../code_assist/oauth2.js' - ); - const googleAccountId = getCachedGoogleAccountId(); - if (googleAccountId) { - return googleAccountId; - } - } catch (error) { - // If there's any error accessing Google Account ID, just return empty string - console.debug('Could not get cached Google Account ID:', error); - } - - return ''; -} |
