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

Method removeCachedToken

wxapp/fej.js:111–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 }
110
111 removeCachedToken() {
112 const cache = readTokenCache();
113 if (cache[this.openid]) {
114 delete cache[this.openid];
115 writeTokenCache(cache);
116 }
117 this.token = "";
118 }
119
120 applyToken(data = {}) {
121 this.token = data.accessToken || data.access_token || "";

Callers 2

runMethod · 0.95
doCheckinMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected