Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/MiniMax-AI/cli
/ maskToken
Function
maskToken
src/utils/token.ts:1–3 ·
view source on GitHub ↗
(token: string)
Source
from the content-addressed store, hash-verified
1
export
function
maskToken(token: string): string {
2
return
token.length > 8 ? `${token.slice(0, 4)}...${token.slice(-4)}` :
'***'
;
3
}
Callers
6
token.test.ts
File · 0.90
ensureAuth
Function · 0.90
run
Function · 0.90
run
Function · 0.90
run
Function · 0.90
maybeShowStatusBar
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected