()
| 117 | } |
| 118 | |
| 119 | removeCachedToken() { |
| 120 | const cache = readTokenCache(); |
| 121 | if (cache[this.account]) { |
| 122 | delete cache[this.account]; |
| 123 | writeTokenCache(cache); |
| 124 | } |
| 125 | this.token = ""; |
| 126 | this.userInfo = {}; |
| 127 | } |
| 128 | |
| 129 | applyToken(data = {}) { |
| 130 | this.token = data.accessToken || data.token || ""; |
no test coverage detected