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

Method _token_unusable

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

Source from the content-addressed store, hash-verified

291 return subject_token
292
293 def _token_unusable(self) -> bool:
294 return self._cached_token is None or self._token_expired()
295
296 def _token_expired(self) -> bool:
297 if self._cached_token_expires_at_monotonic is None:

Callers 1

get_tokenMethod · 0.95

Calls 1

_token_expiredMethod · 0.95

Tested by

no test coverage detected