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