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

Method removeCachedToken

wxapp/dasenlin.js:129–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 removeCachedToken() {
130 const cache = readTokenCache();
131 if (cache[this.account]) {
132 delete cache[this.account];
133 writeTokenCache(cache);
134 }
135 this.token = "";
136 this.userInfo = {};
137 }
138
139 applyToken(data = {}) {
140 this.token = data.token || data.mini_token || "";

Callers 2

runMethod · 0.95
signInMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected