MCPcopy
hub / github.com/openai/openai-python / invalidate_token

Method invalidate_token

src/openai/auth/_workload.py:222–226  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

220 return await to_thread(self.get_token)
221
222 def invalidate_token(self) -> None:
223 with self._lock:
224 self._cached_token = None
225 self._cached_token_expires_at_monotonic = None
226 self._cached_token_refresh_at_monotonic = None
227
228 def _perform_refresh(self) -> None:
229 token_data = self._fetch_token_from_exchange()

Callers 2

_send_with_auth_retryMethod · 0.80
_send_with_auth_retryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected