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

Method removeCachedToken

wxapp/nice.js:138–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 }
137
138 removeCachedToken() {
139 const cache = readTokenCache();
140 if (cache[this.openid]) {
141 delete cache[this.openid];
142 writeTokenCache(cache);
143 }
144 this.token = "";
145 this.memberId = "";
146 this.phone = "";
147 }
148
149 applyToken(data = {}) {
150 this.token = data.token || data.accessToken || "";

Callers 3

runMethod · 0.95
getUserMethod · 0.95
doSignMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected