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

Method _normalize_token_key

src/services/browser_captcha.py:1036–1041  ·  view source on GitHub ↗
(token_id: Optional[int])

Source from the content-addressed store, hash-verified

1034
1035 @staticmethod
1036 def _normalize_token_key(token_id: Optional[int]) -> Optional[int]:
1037 try:
1038 normalized = int(token_id or 0)
1039 except Exception:
1040 normalized = 0
1041 return normalized if normalized > 0 else None
1042
1043 @classmethod
1044 def _build_token_session_cookie_targets(cls, session_token: str) -> List[Dict[str, Any]]:

Calls

no outgoing calls

Tested by

no test coverage detected