MCPcopy Create free account
hub / github.com/anus-dev/ANUS / clearCachedCredentialFile

Function clearCachedCredentialFile

packages/core/src/code_assist/oauth2.ts:395–403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393}
394
395export async function clearCachedCredentialFile() {
396 try {
397 await fs.rm(getCachedCredentialPath(), { force: true });
398 // Clear the Google Account ID cache when credentials are cleared
399 await clearCachedGoogleAccount();
400 } catch (_) {
401 /* empty */
402 }
403}
404
405async function fetchAndCacheUserInfo(client: OAuth2Client): Promise<void> {
406 try {

Callers 2

authenticateMethod · 0.85
useAuthCommandFunction · 0.85

Calls 2

getCachedCredentialPathFunction · 0.85
clearCachedGoogleAccountFunction · 0.85

Tested by

no test coverage detected