()
| 116 | } |
| 117 | |
| 118 | removeCachedToken() { |
| 119 | const cache = readTokenCache(); |
| 120 | if (cache[this.openid]) { |
| 121 | delete cache[this.openid]; |
| 122 | writeTokenCache(cache); |
| 123 | } |
| 124 | this.token = ""; |
| 125 | this.sessionId = ""; |
| 126 | this.cookie = ""; |
| 127 | } |
| 128 | |
| 129 | applyToken(data = {}) { |
| 130 | this.token = pickToken(data); |
no test coverage detected