()
| 111 | } |
| 112 | |
| 113 | saveCachedToken() { |
| 114 | if (!this.token) return; |
| 115 | const cache = readTokenCache(); |
| 116 | cache[this.openid] = { |
| 117 | token: this.token, |
| 118 | userInfo: this.userInfo, |
| 119 | updatedAt: new Date().toISOString(), |
| 120 | }; |
| 121 | writeTokenCache(cache); |
| 122 | } |
| 123 | |
| 124 | removeCachedToken() { |
| 125 | const cache = readTokenCache(); |
no test coverage detected