()
| 119 | } |
| 120 | |
| 121 | saveCachedToken() { |
| 122 | if (!this.accessToken || !this.memberId) return; |
| 123 | const cache = readTokenCache(); |
| 124 | cache[this.cacheKey()] = { |
| 125 | accessToken: this.accessToken, |
| 126 | memberId: this.memberId, |
| 127 | nickName: this.userInfo.nickName || "", |
| 128 | mobile: this.userInfo.mobile || "", |
| 129 | updatedAt: new Date().toISOString(), |
| 130 | }; |
| 131 | writeTokenCache(cache); |
| 132 | } |
| 133 | |
| 134 | clearCachedToken() { |
| 135 | const cache = readTokenCache(); |
no test coverage detected