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

Method removeCachedToken

wxapp/colorful.js:161–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 }
160
161 removeCachedToken() {
162 const cache = readTokenCache();
163 if (cache[this.cacheKey()]) {
164 delete cache[this.cacheKey()];
165 writeTokenCache(cache);
166 }
167 this.token = "";
168 this.refreshToken = "";
169 this.userInfo = {};
170 }
171
172 applyToken(data = {}) {
173 this.token = data.token || data.Token || "";

Callers 4

runMethod · 0.95
signInV2Method · 0.95
getSignInfoMethod · 0.95
getUserInfoMethod · 0.95

Calls 3

cacheKeyMethod · 0.95
readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected