(extra = {})
| 284 | } |
| 285 | |
| 286 | saveCache(extra = {}) { |
| 287 | const cache = readCache(); |
| 288 | cache[this.cacheKey] = { |
| 289 | ...(cache[this.cacheKey] || {}), |
| 290 | openid: this.openid || this.getCached().openid || "", |
| 291 | uid: this.uid || this.cookies.uid || "", |
| 292 | cookie: cookieHeader(this.cookies), |
| 293 | secret: this.secret, |
| 294 | ...extra, |
| 295 | updatedAt: new Date().toISOString(), |
| 296 | }; |
| 297 | writeCache(cache); |
| 298 | } |
| 299 | |
| 300 | removeLogin() { |
| 301 | const cache = readCache(); |
no test coverage detected