()
| 133 | } |
| 134 | |
| 135 | removeCachedToken() { |
| 136 | const cache = readTokenCache(); |
| 137 | delete cache[this.cacheKey()]; |
| 138 | writeTokenCache(cache); |
| 139 | this.accessToken = ""; |
| 140 | this.authorization = ""; |
| 141 | this.userInfo = {}; |
| 142 | } |
| 143 | |
| 144 | applyToken(data = {}) { |
| 145 | this.accessToken = data.accessToken || data.access_token || ""; |
no test coverage detected