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

Method saveCachedToken

wxapp/mfd.js:127–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 }
126
127 saveCachedToken() {
128 if (!this.memberId) return;
129 const cache = readTokenCache();
130 cache[this.account] = {
131 openId: this.openId,
132 unionId: this.unionId,
133 memberId: this.memberId,
134 phone: this.phone,
135 groupId: this.groupId,
136 agentId: this.agentId,
137 updatedAt: new Date().toISOString(),
138 };
139 writeTokenCache(cache);
140 }
141
142 removeCachedToken() {
143 const cache = readTokenCache();

Callers 2

getIdentityInfoMethod · 0.95
loginByWxCodeMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected