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

Method removeCachedToken

wxapp/iqoo.js:140–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 removeCachedToken() {
141 const cache = readTokenCache();
142 if (cache[this.openid]) {
143 delete cache[this.openid];
144 writeTokenCache(cache);
145 }
146 this.token = "";
147 this.refreshToken = "";
148 this.userId = "";
149 this.userInfo = {};
150 }
151
152 applyToken(data = {}) {
153 this.token = data.accessToken || data.token || "";

Callers 3

runMethod · 0.95
userInfoRequestMethod · 0.95
signInMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected