()
| 106 | } |
| 107 | |
| 108 | saveCachedToken() { |
| 109 | if (!this.token) return; |
| 110 | const cache = readTokenCache(); |
| 111 | cache[this.account] = { |
| 112 | accessToken: this.token, |
| 113 | userInfo: this.userInfo || {}, |
| 114 | updatedAt: new Date().toISOString(), |
| 115 | }; |
| 116 | writeTokenCache(cache); |
| 117 | } |
| 118 | |
| 119 | removeCachedToken() { |
| 120 | const cache = readTokenCache(); |
no test coverage detected