(extra = {})
| 191 | } |
| 192 | |
| 193 | saveCache(extra = {}) { |
| 194 | const cache = readCache(); |
| 195 | cache[this.cacheKey] = { |
| 196 | ...(cache[this.cacheKey] || {}), |
| 197 | openid: this.openid || this.getCached().openid || "", |
| 198 | ...(this.token ? { token: this.token } : {}), |
| 199 | ...extra, |
| 200 | updatedAt: new Date().toISOString(), |
| 201 | }; |
| 202 | writeCache(cache); |
| 203 | } |
| 204 | |
| 205 | removeToken() { |
| 206 | const cache = readCache(); |
no test coverage detected