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