()
| 139 | } |
| 140 | |
| 141 | saveCachedToken() { |
| 142 | if (!this.token) return; |
| 143 | const cache = readTokenCache(); |
| 144 | cache[this.cacheKey()] = { |
| 145 | accessToken: this.token, |
| 146 | refreshToken: this.refreshToken, |
| 147 | communityToken: this.communityToken, |
| 148 | uuid: this.uuid, |
| 149 | userInfo: this.userInfo, |
| 150 | updatedAt: new Date().toISOString(), |
| 151 | }; |
| 152 | writeTokenCache(cache); |
| 153 | } |
| 154 | |
| 155 | removeCachedToken() { |
| 156 | const cache = readTokenCache(); |
no test coverage detected