()
| 139 | } |
| 140 | |
| 141 | function 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 | |
| 150 | function writeTokenCache(cache) { |
| 151 | try { |
no outgoing calls
no test coverage detected