()
| 153 | } |
| 154 | |
| 155 | removeCachedToken() { |
| 156 | const cache = readTokenCache(); |
| 157 | if (cache[this.cacheKey()]) { |
| 158 | delete cache[this.cacheKey()]; |
| 159 | writeTokenCache(cache); |
| 160 | } |
| 161 | this.token = ""; |
| 162 | this.refreshToken = ""; |
| 163 | this.communityToken = ""; |
| 164 | this.userInfo = {}; |
| 165 | } |
| 166 | |
| 167 | applyToken(data = {}) { |
| 168 | this.token = data.accessToken || data.token || ""; |
no test coverage detected