()
| 159 | } |
| 160 | |
| 161 | removeCachedToken() { |
| 162 | const cache = readTokenCache(); |
| 163 | if (cache[this.cacheKey()]) { |
| 164 | delete cache[this.cacheKey()]; |
| 165 | writeTokenCache(cache); |
| 166 | } |
| 167 | this.token = ""; |
| 168 | this.refreshToken = ""; |
| 169 | this.userInfo = {}; |
| 170 | } |
| 171 | |
| 172 | applyToken(data = {}) { |
| 173 | this.token = data.token || data.Token || ""; |
no test coverage detected