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

Method removeCachedToken

wxapp/fafa.js:135–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 }
134
135 removeCachedToken() {
136 const cache = readTokenCache();
137 delete cache[this.cacheKey()];
138 writeTokenCache(cache);
139 this.accessToken = "";
140 this.authorization = "";
141 this.userInfo = {};
142 }
143
144 applyToken(data = {}) {
145 this.accessToken = data.accessToken || data.access_token || "";

Callers 4

runMethod · 0.95
getPointsInfoMethod · 0.95
getSignListMethod · 0.95
doSignMethod · 0.95

Calls 3

cacheKeyMethod · 0.95
readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected