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

Function readTokenCache

wxapp/hrj.js:70–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68});
69
70function readTokenCache() {
71 try {
72 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
73 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
74 } catch (e) {
75 return {};
76 }
77}
78
79function writeTokenCache(cache) {
80 try {

Callers 3

getCachedTokenMethod · 0.70
saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected