()
| 102 | return cache[this.wcsid]?.accessToken || ""; |
| 103 | } |
| 104 | saveCachedToken() { |
| 105 | if (!this.ck) return; |
| 106 | const cache = readTokenCache(); |
| 107 | cache[this.wcsid] = { |
| 108 | accessToken: this.ck, |
| 109 | mobilePhone: this.mobilePhone || "", |
| 110 | updatedAt: new Date().toISOString() |
| 111 | }; |
| 112 | writeTokenCache(cache); |
| 113 | } |
| 114 | removeCachedToken() { |
| 115 | const cache = readTokenCache(); |
| 116 | if (cache[this.wcsid]) { |
no test coverage detected