(account, token)
| 62 | } |
| 63 | |
| 64 | function updateCachedToken(account, token) { |
| 65 | if (!account || !token || isToken(account)) return; |
| 66 | const cache = readCache(); |
| 67 | cache[account] = { |
| 68 | token, |
| 69 | updatedAt: new Date().toISOString(), |
| 70 | }; |
| 71 | writeCache(cache); |
| 72 | } |
| 73 | |
| 74 | function getResponseToken(headers = {}) { |
| 75 | return ( |
no test coverage detected