()
| 146 | } |
| 147 | |
| 148 | removeCachedToken() { |
| 149 | const cache = readCache(); |
| 150 | if (cache[this.account]) { |
| 151 | delete cache[this.account]; |
| 152 | writeCache(cache); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | async request({ method = "GET", apiPath, query = {}, data = null, token = this.token, allowFail = false }) { |
| 157 | const options = { |
no test coverage detected