()
| 149 | } |
| 150 | |
| 151 | removeCachedToken() { |
| 152 | const cache = readTokenCache(); |
| 153 | if (cache[this.openid]) { |
| 154 | delete cache[this.openid]; |
| 155 | writeTokenCache(cache); |
| 156 | } |
| 157 | this.token = ""; |
| 158 | this.appOpenid = ""; |
| 159 | this.userId = ""; |
| 160 | this.userType = 0; |
| 161 | } |
| 162 | |
| 163 | applyToken(data = {}) { |
| 164 | this.token = data.token || ""; |
no test coverage detected