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

Method removeCachedToken

wxapp/jingyoujia.js:119–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 removeCachedToken() {
120 const cache = readTokenCache();
121 if (cache[this.account]) {
122 delete cache[this.account];
123 writeTokenCache(cache);
124 }
125 this.token = "";
126 this.userInfo = {};
127 }
128
129 applyToken(data = {}) {
130 this.token = data.accessToken || data.token || "";

Callers 3

runMethod · 0.95
getCustomerDetailsMethod · 0.95
signInMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected