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

Function readTokenCache

wxapp/nestle.js:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55function readTokenCache() {
56 try {
57 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
58 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
59 } catch {
60 return {};
61 }
62}
63
64function writeTokenCache(cache) {
65 try {

Callers 2

getCachedTokenMethod · 0.70
saveCachedTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected