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

Function readTokenCache

wxapp/campari.js:34–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32});
33
34function readTokenCache() {
35 try {
36 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
37 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
38 } catch (e) {
39 return {};
40 }
41}
42
43function writeTokenCache(cache) {
44 try {

Callers 3

getCachedTokenMethod · 0.70
saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected