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