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

Method saveCachedToken

wxapp/lvbizi.js:94–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 saveCachedToken() {
95 if (!this.accessToken) return;
96 const cache = readTokenCache();
97 cache[this.openid] = {
98 ...this.token,
99 updatedAt: new Date().toISOString(),
100 };
101 writeTokenCache(cache);
102 }
103
104 removeCachedToken() {
105 const cache = readTokenCache();

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected