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

Function readTokenCache

wxapp/yingshujufeng.js:40–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38});
39
40function readTokenCache() {
41 try {
42 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
43 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
44 } catch (e) {
45 return {};
46 }
47}
48
49function writeTokenCache(cache) {
50 try {

Callers 3

getCachedTokenMethod · 0.70
saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected