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

Method removeCachedToken

wxapp/wugenvboshi.js:104–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 removeCachedToken() {
105 const cache = readTokenCache();
106 if (cache[this.openid]) {
107 delete cache[this.openid];
108 writeTokenCache(cache);
109 }
110 this.token = {};
111 }
112
113 get accessToken() {
114 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