MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / saveCachedToken

Method saveCachedToken

wxapp/mengxiangjia.js:103–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 saveCachedToken() {
104 if (!this.accessToken) return;
105 const cache = readTokenCache();
106 cache[this.openid] = {
107 ...this.loginResult,
108 updatedAt: new Date().toISOString(),
109 };
110 writeTokenCache(cache);
111 }
112
113 removeCachedToken() {
114 const cache = readTokenCache();

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected