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

Method getCachedToken

wxapp/longfor.js:334–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332 }
333
334 getCachedToken() {
335 const item = readCache()[this.account];
336 if (!item?.token) return null;
337 if (item.expireAt && Number(item.expireAt) < Date.now() + 60000) return null;
338 return item;
339 }
340
341 saveCachedToken() {
342 if (!this.token) return;

Callers 1

runMethod · 0.95

Calls 1

readCacheFunction · 0.70

Tested by

no test coverage detected