()
| 52 | } |
| 53 | |
| 54 | function readTokenCache() { |
| 55 | try { |
| 56 | if (!fs.existsSync(TOKEN_CACHE_FILE)) return {}; |
| 57 | return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {}; |
| 58 | } catch { |
| 59 | return {}; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function writeTokenCache(cache) { |
| 64 | try { |
no outgoing calls
no test coverage detected