MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / removeCachedToken

Method removeCachedToken

wxapp/wb.js:151–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 removeCachedToken() {
152 const cache = readTokenCache();
153 if (cache[this.openid]) {
154 delete cache[this.openid];
155 writeTokenCache(cache);
156 }
157 this.token = "";
158 this.appOpenid = "";
159 this.userId = "";
160 this.userType = 0;
161 }
162
163 applyToken(data = {}) {
164 this.token = data.token || "";

Callers 3

runMethod · 0.95
signInMethod · 0.95
doTargetTasksMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected