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

Method removeCachedToken

wxapp/mfd.js:142–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 }
141
142 removeCachedToken() {
143 const cache = readTokenCache();
144 if (cache[this.account]) {
145 delete cache[this.account];
146 writeTokenCache(cache);
147 }
148 this.openId = "";
149 this.unionId = "";
150 this.memberId = "";
151 this.phone = "";
152 this.groupId = "";
153 this.agentId = "";
154 }
155
156 applyToken(data = {}) {
157 this.openId = data.openId || "";

Callers 3

runMethod · 0.95
getMemberInfoMethod · 0.95
signInMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected