MCPcopy Index your code
hub / github.com/Noumena-Network/code / resetUserCache

Function resetUserCache

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

Source from the content-addressed store, hash-verified

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

Callers 4

user.test.tsFile · 0.85
clearAuthRelatedCachesFunction · 0.85
runRefreshFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected