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

Method removeCachedToken

wxapp/nissin.js:110–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 removeCachedToken() {
111 const cache = readTokenCache();
112 if (cache[this.openid]) {
113 delete cache[this.openid];
114 writeTokenCache(cache);
115 }
116 this.token = "";
117 this.redOpenId = "";
118 this.userId = "";
119 }
120
121 applyToken(data = {}) {
122 this.token = data.accessToken || data.access_token || "";

Callers 5

runMethod · 0.95
getUserMethod · 0.95
doSignMethod · 0.95
getTaskListMethod · 0.95
enterGameMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected