()
| 126 | } |
| 127 | |
| 128 | removeCachedToken() { |
| 129 | const cache = readTokenCache(); |
| 130 | if (cache[this.cacheKey()]) { |
| 131 | delete cache[this.cacheKey()]; |
| 132 | writeTokenCache(cache); |
| 133 | } |
| 134 | this.token = ""; |
| 135 | this.sessionKey = ""; |
| 136 | this.userId = ""; |
| 137 | this.userInfo = {}; |
| 138 | } |
| 139 | |
| 140 | applyToken(data = {}) { |
| 141 | this.token = String(data.token || data.authorization || "").replace(/^Mer/i, ""); |
no test coverage detected