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

Method saveCachedToken

wxapp/yunduodingding.js:101–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected