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

Function maskToken

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

Source from the content-addressed store, hash-verified

50}
51
52function maskToken(token = "") {
53 if (!token) return "";
54 return token.length > 12 ? `${token.slice(0, 6)}***${token.slice(-6)}` : `${token.slice(0, 3)}***`;
55}
56
57class Task {
58 constructor(openid) {

Callers 1

runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected