()
| 124 | } |
| 125 | |
| 126 | saveCachedToken() { |
| 127 | if (!this.token) return; |
| 128 | const cache = readTokenCache(); |
| 129 | cache[this.openid] = { |
| 130 | token: this.token, |
| 131 | memberId: this.memberId, |
| 132 | phone: this.phone, |
| 133 | updatedAt: new Date().toISOString(), |
| 134 | }; |
| 135 | writeTokenCache(cache); |
| 136 | } |
| 137 | |
| 138 | removeCachedToken() { |
| 139 | const cache = readTokenCache(); |
no test coverage detected