Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallfawn/QLScriptPublic
/ maskToken
Function
maskToken
wxapp/wugenvboshi.js:54–57 ·
view source on GitHub ↗
(token = "")
Source
from the content-addressed store, hash-verified
52
}
53
54
function
maskToken(token =
""
) {
55
if
(!token)
return
""
;
56
return
token.length > 12 ? `${token.slice(0, 6)}***${token.slice(-6)}` : `${token.slice(0, 3)}***`;
57
}
58
59
class
Task {
60
constructor(openid) {
Callers
1
run
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected