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

Method saveCachedToken

wxapp/feihe.js:137–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136
137 saveCachedToken() {
138 if (!this.token) return;
139 const cache = readCache();
140 cache[this.account] = {
141 token: this.token,
142 userInfo: this.userInfo,
143 updatedAt: new Date().toISOString(),
144 };
145 writeCache(cache);
146 }
147
148 removeCachedToken() {
149 const cache = readCache();

Callers 1

loginByCodeMethod · 0.95

Calls 2

readCacheFunction · 0.70
writeCacheFunction · 0.70

Tested by

no test coverage detected