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

Function maskToken

wxapp/ztkd.js:52–56  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

50}
51
52function maskToken(token = "") {
53 const value = String(token || "");
54 if (!value) return "";
55 return value.length > 18 ? `${value.slice(0, 10)}***${value.slice(-8)}` : `${value.slice(0, 4)}***`;
56}
57
58function pad(num) {
59 return String(num).padStart(2, "0");

Callers 1

loginMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected