MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _mask_token

Function _mask_token

src/api/admin.py:53–58  ·  view source on GitHub ↗
(token: Optional[str])

Source from the content-addressed store, hash-verified

51
52
53def _mask_token(token: Optional[str]) -> str:
54 if not token:
55 return ""
56 if len(token) <= 24:
57 return token
58 return f"{token[:18]}...{token[-8:]}"
59
60
61def _truncate_text(text: Any, limit: int = 240) -> str:

Callers 1

test_captcha_scoreFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_captcha_scoreFunction · 0.68