()
| 135 | } |
| 136 | |
| 137 | saveCachedToken() { |
| 138 | if (!this.token) return; |
| 139 | const cache = readCache(); |
| 140 | cache[this.account] = { |
| 141 | token: this.token, |
| 142 | userInfo: this.userInfo, |
| 143 | updatedAt: new Date().toISOString(), |
| 144 | }; |
| 145 | writeCache(cache); |
| 146 | } |
| 147 | |
| 148 | removeCachedToken() { |
| 149 | const cache = readCache(); |
no test coverage detected