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

Method removeCachedToken

wxapp/aiguoyue.js:105–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 removeCachedToken() {
106 const cache = readTokenCache();
107 if (cache[this.openid]) {
108 delete cache[this.openid];
109 writeTokenCache(cache);
110 }
111 this.token = {};
112 }
113
114 get accessToken() {
115 return this.token.accessToken || this.token.access_token || "";

Callers 2

runMethod · 0.95
doCheckinMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected