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

Method saveCachedToken

wxapp/zbs.js:113–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 saveCachedToken() {
114 if (!this.token) return;
115 const cache = readTokenCache();
116 cache[this.openid] = {
117 token: this.token,
118 userInfo: this.userInfo,
119 updatedAt: new Date().toISOString(),
120 };
121 writeTokenCache(cache);
122 }
123
124 removeCachedToken() {
125 const cache = readTokenCache();

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected