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

Method removeCachedToken

wxapp/gyjj.js:128–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 removeCachedToken() {
129 const cache = readTokenCache();
130 if (cache[this.cacheKey()]) {
131 delete cache[this.cacheKey()];
132 writeTokenCache(cache);
133 }
134 this.token = "";
135 this.sessionKey = "";
136 this.userId = "";
137 this.userInfo = {};
138 }
139
140 applyToken(data = {}) {
141 this.token = String(data.token || data.authorization || "").replace(/^Mer/i, "");

Callers 3

runMethod · 0.95
signMethod · 0.95
accountMethod · 0.95

Calls 3

cacheKeyMethod · 0.95
readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected