()
| 118 | } |
| 119 | |
| 120 | saveCachedToken() { |
| 121 | if (!this.token) return; |
| 122 | const cache = readTokenCache(); |
| 123 | cache[this.openid] = { |
| 124 | accessToken: this.token, |
| 125 | userInfo: this.userInfo, |
| 126 | updatedAt: new Date().toISOString(), |
| 127 | }; |
| 128 | writeTokenCache(cache); |
| 129 | } |
| 130 | |
| 131 | removeCachedToken() { |
| 132 | const cache = readTokenCache(); |
no test coverage detected