code cleanup and test fix

This commit is contained in:
Badri Narayanan S
2025-12-21 20:25:20 +05:30
parent c703fb32fb
commit f282b36d1e
4 changed files with 19 additions and 21 deletions

View File

@@ -13,7 +13,6 @@ import { TOKEN_REFRESH_INTERVAL_MS, ANTIGRAVITY_AUTH_PORT } from './constants.js
// Cache for the extracted token
let cachedToken = null;
let cachedConfig = null;
let tokenExtractedAt = null;
// Antigravity's SQLite database path
@@ -131,7 +130,6 @@ export async function getToken() {
if (needsRefresh()) {
const data = await getTokenData();
cachedToken = data.apiKey;
cachedConfig = data;
tokenExtractedAt = Date.now();
}
return cachedToken;
@@ -142,7 +140,6 @@ export async function getToken() {
*/
export async function forceRefresh() {
cachedToken = null;
cachedConfig = null;
tokenExtractedAt = null;
return getToken();
}