()
| 129 | } |
| 130 | |
| 131 | removeCachedToken() { |
| 132 | const cache = readTokenCache(); |
| 133 | if (cache[this.openid]) { |
| 134 | delete cache[this.openid]; |
| 135 | writeTokenCache(cache); |
| 136 | } |
| 137 | this.token = ""; |
| 138 | this.userInfo = {}; |
| 139 | } |
| 140 | |
| 141 | applyToken(data = {}) { |
| 142 | this.token = pickToken(data); |
no test coverage detected