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

Method saveCachedToken

wxapp/jingyoujia.js:108–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 saveCachedToken() {
109 if (!this.token) return;
110 const cache = readTokenCache();
111 cache[this.account] = {
112 accessToken: this.token,
113 userInfo: this.userInfo || {},
114 updatedAt: new Date().toISOString(),
115 };
116 writeTokenCache(cache);
117 }
118
119 removeCachedToken() {
120 const cache = readTokenCache();

Callers 2

loginByWxCodeMethod · 0.95
getCustomerDetailsMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected