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

Method removeCachedToken

wxapp/qianjinjiankang.js:123–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 removeCachedToken() {
124 const cache = readTokenCache();
125 if (cache[this.openid]) {
126 delete cache[this.openid];
127 writeTokenCache(cache);
128 }
129 this.token = "";
130 this.tenId = "";
131 this.wxOpenid = "";
132 }
133
134 applyToken(data = {}) {
135 this.token = data.accessToken || data.token || "";

Callers 2

runMethod · 0.95
signInMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected