MCPcopy
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

1export function maskToken(token: string): string {
2 return token.length > 8 ? `${token.slice(0, 4)}...${token.slice(-4)}` : '***';
3}

Callers 6

token.test.tsFile · 0.90
ensureAuthFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
maybeShowStatusBarFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected