MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / saveCachedToken

Method saveCachedToken

wxapp/mxbc.js:104–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 return cache[this.wcsid]?.accessToken || "";
103 }
104 saveCachedToken() {
105 if (!this.ck) return;
106 const cache = readTokenCache();
107 cache[this.wcsid] = {
108 accessToken: this.ck,
109 mobilePhone: this.mobilePhone || "",
110 updatedAt: new Date().toISOString()
111 };
112 writeTokenCache(cache);
113 }
114 removeCachedToken() {
115 const cache = readTokenCache();
116 if (cache[this.wcsid]) {

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected