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

Method _flow_call_for_token

src/services/token_manager.py:117–127  ·  view source on GitHub ↗
(self, token: Token, call)

Source from the content-addressed store, hash-verified

115 return True
116
117 async def _flow_call_for_token(self, token: Token, call):
118 previous_fingerprint = self.flow_client.get_request_fingerprint()
119 proxy_url = (getattr(token, "proxy_url", "") or "").strip()
120 if proxy_url:
121 next_fingerprint = dict(previous_fingerprint or {})
122 next_fingerprint["proxy_url"] = proxy_url
123 self.flow_client._set_request_fingerprint(next_fingerprint)
124 try:
125 return await call()
126 finally:
127 self.flow_client._set_request_fingerprint(previous_fingerprint)
128
129 async def _st_to_at_for_token(self, token: Token, st: str) -> Dict[str, Any]:
130 return await self._flow_call_for_token(token, lambda: self.flow_client.st_to_at(st))

Callers 2

_st_to_at_for_tokenMethod · 0.95

Calls 2

Tested by

no test coverage detected