MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / saveCachedToken

Method saveCachedToken

wxapp/casetify.js:106–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 3

runMethod · 0.95
loginByWxCodeMethod · 0.95
getCampaignIdMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected