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

Method removeCachedToken

wxapp/casetify.js:121–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

runMethod · 0.95
doSignMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected