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

Method saveToken

wxapp/fyzq.js:102–111  ·  view source on GitHub ↗
(token, extra = {})

Source from the content-addressed store, hash-verified

100 }
101
102 saveToken(token, extra = {}) {
103 if (!token) return;
104 const cache = readCache();
105 cache[this.account] = {
106 token,
107 ...extra,
108 updatedAt: new Date().toISOString(),
109 };
110 writeCache(cache);
111 }
112
113 removeToken() {
114 const cache = readCache();

Callers 1

loginMethod · 0.95

Calls 2

readCacheFunction · 0.70
writeCacheFunction · 0.70

Tested by

no test coverage detected