()
| 30 | }); |
| 31 | |
| 32 | function readCache() { |
| 33 | try { |
| 34 | if (!fs.existsSync(TOKEN_CACHE_FILE)) return {}; |
| 35 | return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {}; |
| 36 | } catch { |
| 37 | return {}; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | function writeCache(cache) { |
| 42 | try { |
no outgoing calls
no test coverage detected