Files
openclaw/extensions/google/google-oauth.test-support.ts
Vincent Koc fcc20d14a3 fix(google): stop scraping Gemini CLI OAuth credentials (#117167)
* fix(google): delegate Gemini OAuth refresh to the CLI

* refactor(google): remove retired Gemini OAuth stack

* chore(ci): prune retired Google OAuth baseline

* fix(google): retire Gemini CLI usage telemetry

* fix(google): remove retired usage token parser
2026-08-01 11:36:24 +08:00

16 lines
412 B
TypeScript

type VertexAdcTestApi = {
reset: () => void;
};
function requireTestApi(key: string): unknown {
const api = (globalThis as Record<PropertyKey, unknown>)[Symbol.for(key)];
if (!api) {
throw new Error(`Google test API is unavailable: ${key}`);
}
return api;
}
export function resetGoogleVertexAdcState(): void {
(requireTestApi("openclaw.google.vertexAdcTestApi") as VertexAdcTestApi).reset();
}