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

Method removeCachedToken

wxapp/roki.js:146–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 removeCachedToken() {
147 const cache = readTokenCache();
148 if (cache[this.account]) {
149 delete cache[this.account];
150 writeTokenCache(cache);
151 }
152 this.token = "";
153 this.aiToken = "";
154 this.expireTime = 0;
155 }
156
157 applyToken(data = {}) {
158 this.token = data.token || "";

Callers 2

runMethod · 0.95
signInMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected