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

Function readTokenCache

wxapp/ykb_all.js:141–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139}
140
141function readTokenCache() {
142 try {
143 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
144 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
145 } catch {
146 return {};
147 }
148}
149
150function writeTokenCache(cache) {
151 try {

Callers 3

getCachedTokenMethod · 0.70
saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected