()
| 138 | } |
| 139 | |
| 140 | removeCachedToken() { |
| 141 | const cache = readTokenCache(); |
| 142 | if (cache[this.openid]) { |
| 143 | delete cache[this.openid]; |
| 144 | writeTokenCache(cache); |
| 145 | } |
| 146 | this.token = ""; |
| 147 | this.refreshToken = ""; |
| 148 | this.userId = ""; |
| 149 | this.userInfo = {}; |
| 150 | } |
| 151 | |
| 152 | applyToken(data = {}) { |
| 153 | this.token = data.accessToken || data.token || ""; |
no test coverage detected