()
| 104 | } |
| 105 | |
| 106 | saveCachedToken() { |
| 107 | if (!this.token) return; |
| 108 | const cache = readTokenCache(); |
| 109 | cache[this.openid] = { |
| 110 | token: this.token, |
| 111 | memberId: this.memberId, |
| 112 | customerNo: this.customerNo, |
| 113 | phone: this.phone, |
| 114 | levels: this.levels, |
| 115 | campaignId: this.campaignId, |
| 116 | updatedAt: new Date().toISOString(), |
| 117 | }; |
| 118 | writeTokenCache(cache); |
| 119 | } |
| 120 | |
| 121 | removeCachedToken() { |
| 122 | const cache = readTokenCache(); |
no test coverage detected