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

Method saveCachedToken

wxapp/sinsin.js:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 saveCachedToken() {
91 if (!this.sessionId) return;
92 const cache = readTokenCache();
93 cache[this.openid] = {
94 ...this.token,
95 updatedAt: new Date().toISOString(),
96 };
97 writeTokenCache(cache);
98 }
99
100 removeCachedToken() {
101 const cache = readTokenCache();

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected