MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / _is_expired

Method _is_expired

github/Auth.py:380–383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

378
379 @property
380 def _is_expired(self) -> bool:
381 assert self.__installation_authorization is not None
382 token_expires_at = self.__installation_authorization.expires_at - TOKEN_REFRESH_THRESHOLD_TIMEDELTA
383 return token_expires_at < datetime.now(timezone.utc)
384
385 def _get_installation_authorization(self) -> InstallationAuthorization:
386 assert self.__integration is not None, "Method withRequester(Requester) must be called first"

Callers

nothing calls this directly

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected