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

Function shortToken

wxapp/gyjj.js:55–58  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

53}
54
55function shortToken(token = "") {
56 const value = String(token || "").replace(/^Mer/i, "");
57 return value ? `${value.slice(0, 6)}***${value.slice(-6)}` : "";
58}
59
60function isTokenError(message) {
61 return /1011|401|403|token|登录|授权|失效|过期/i.test(String(message || ""));

Callers 3

constructorMethod · 0.70
runMethod · 0.70
loginByWxCodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected