()
| 134 | } |
| 135 | |
| 136 | saveCachedToken() { |
| 137 | if (!this.token) return; |
| 138 | const cache = readTokenCache(); |
| 139 | cache[this.openid] = { |
| 140 | token: this.token, |
| 141 | appOpenid: this.appOpenid, |
| 142 | userId: this.userId, |
| 143 | userType: this.userType, |
| 144 | mobile: this.mobile, |
| 145 | currentJf: this.currentJf, |
| 146 | updatedAt: new Date().toISOString(), |
| 147 | }; |
| 148 | writeTokenCache(cache); |
| 149 | } |
| 150 | |
| 151 | removeCachedToken() { |
| 152 | const cache = readTokenCache(); |
no test coverage detected