()
| 144 | } |
| 145 | |
| 146 | removeCachedToken() { |
| 147 | const cache = readTokenCache(); |
| 148 | if (cache[this.account]) { |
| 149 | delete cache[this.account]; |
| 150 | writeTokenCache(cache); |
| 151 | } |
| 152 | this.token = ""; |
| 153 | this.aiToken = ""; |
| 154 | this.expireTime = 0; |
| 155 | } |
| 156 | |
| 157 | applyToken(data = {}) { |
| 158 | this.token = data.token || ""; |
no test coverage detected