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

Method _get_installation_authorization

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

Source from the content-addressed store, hash-verified

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"
387 return self.__integration.get_access_token(
388 self._installation_id,
389 permissions=self._token_permissions,
390 )
391
392 @property
393 def _masked_token(self) -> str:

Callers 1

tokenMethod · 0.95

Calls 1

get_access_tokenMethod · 0.45

Tested by

no test coverage detected