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

Method removeCachedToken

wxapp/parkson.js:109–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 4

runMethod · 0.95
getPointsInfoMethod · 0.95
getSignListMethod · 0.95
doSignMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected