()
| 127 | } |
| 128 | |
| 129 | removeCachedToken() { |
| 130 | const cache = readTokenCache(); |
| 131 | if (cache[this.account]) { |
| 132 | delete cache[this.account]; |
| 133 | writeTokenCache(cache); |
| 134 | } |
| 135 | this.token = ""; |
| 136 | this.userInfo = {}; |
| 137 | } |
| 138 | |
| 139 | applyToken(data = {}) { |
| 140 | this.token = data.token || data.mini_token || ""; |
no test coverage detected