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

Function updateCachedToken

wxapp/aima.js:64–72  ·  view source on GitHub ↗
(account, token)

Source from the content-addressed store, hash-verified

62}
63
64function updateCachedToken(account, token) {
65 if (!account || !token || isToken(account)) return;
66 const cache = readCache();
67 cache[account] = {
68 token,
69 updatedAt: new Date().toISOString(),
70 };
71 writeCache(cache);
72}
73
74function getResponseToken(headers = {}) {
75 return (

Callers 2

requestFunction · 0.85
loginByCodeFunction · 0.85

Calls 3

isTokenFunction · 0.85
readCacheFunction · 0.70
writeCacheFunction · 0.70

Tested by

no test coverage detected