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