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

Method saveCachedToken

wxapp/aiguoyue.js:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected