()
| 96 | }); |
| 97 | |
| 98 | function readCache() { |
| 99 | try { |
| 100 | if (!fs.existsSync(TOKEN_CACHE_FILE)) return {}; |
| 101 | return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {}; |
| 102 | } catch (e) { |
| 103 | return {}; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | function writeCache(cache) { |
| 108 | try { |
no outgoing calls
no test coverage detected