()
| 99 | } |
| 100 | |
| 101 | saveCachedToken() { |
| 102 | if (!this.session.token) return; |
| 103 | const cache = readTokenCache(); |
| 104 | cache[this.openid] = { |
| 105 | token: this.session.token, |
| 106 | openid: this.session.openid || "", |
| 107 | sessionKey: this.session.sessionKey || "", |
| 108 | updatedAt: new Date().toISOString(), |
| 109 | }; |
| 110 | writeTokenCache(cache); |
| 111 | } |
| 112 | |
| 113 | removeCachedToken() { |
| 114 | const cache = readTokenCache(); |
no test coverage detected