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

Function maskToken

wxapp/feihe.js:48–51  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

46}
47
48function maskToken(token = "") {
49 if (!token) return "";
50 return token.length > 16 ? `${token.slice(0, 8)}***${token.slice(-8)}` : `${token.slice(0, 4)}***`;
51}
52
53function randomString(length) {
54 const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";

Callers 2

runMethod · 0.70
loginByCodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected