MCPcopy
hub / github.com/codeaashu/claude-code / resetUserCache

Function resetUserCache

src/utils/user.ts:67–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 * so the next getCoreUserData() call picks up fresh credentials and email.
66 */
67export function resetUserCache(): void {
68 cachedEmail = null
69 emailFetchPromise = null
70 getCoreUserData.cache.clear?.()
71 getGitEmail.cache.clear?.()
72}
73
74/**
75 * 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