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