MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / resetUserCache

Function resetUserCache

source code/utils/user.ts:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 * so the next getCoreUserData() call picks up fresh credentials and email.
68 */
69export function resetUserCache(): void {
70 cachedEmail = null
71 emailFetchPromise = null
72 getCoreUserData.cache.clear?.()
73 getGitEmail.cache.clear?.()
74}
75
76/**
77 * Get core user data.

Callers 3

runFunction · 0.85
callFunction · 0.85
clearAuthRelatedCachesFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected