Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
52
function
maskToken(token =
""
) {
53
if
(!token)
return
""
;
54
return
token.length > 12 ? `${token.slice(0, 6)}***${token.slice(-6)}` : `${token.slice(0, 3)}***`;
55
}
56
57
class
Task {
58
constructor(openid) {
Callers
1
run
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected