MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / saveCachedToken

Method saveCachedToken

wxapp/bluedash.js:91–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 }
90
91 saveCachedToken() {
92 if (!this.authorization) return;
93 const cache = readTokenCache();
94 cache[this.openid] = {
95 authorization: this.authorization,
96 refreshToken: this.refreshToken,
97 nickname: this.user.nickname || "",
98 mobile: this.user.mobile || "",
99 updatedAt: new Date().toISOString(),
100 };
101 writeTokenCache(cache);
102 }
103
104 removeCachedToken() {
105 const cache = readTokenCache();

Callers 2

loginByWxCodeMethod · 0.95
getUserMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected