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

Function readTokenCache

wxapp/kangshifu.js:46–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44});
45
46function readTokenCache() {
47 try {
48 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
49 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
50 } catch (e) {
51 return {};
52 }
53}
54
55function writeTokenCache(cache) {
56 try {

Callers 3

getCachedTokenMethod · 0.70
saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected