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

Method removeCachedToken

wxapp/haitian.js:155–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 removeCachedToken() {
156 const cache = readTokenCache();
157 if (cache[this.cacheKey()]) {
158 delete cache[this.cacheKey()];
159 writeTokenCache(cache);
160 }
161 this.token = "";
162 this.refreshToken = "";
163 this.communityToken = "";
164 this.userInfo = {};
165 }
166
167 applyToken(data = {}) {
168 this.token = data.accessToken || data.token || "";

Callers 2

runMethod · 0.95
getUserInfoMethod · 0.95

Calls 3

cacheKeyMethod · 0.95
readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected