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

Method mask_authentication

github/Auth.py:90–94  ·  view source on GitHub ↗

Mask header, e.g. for logging.

(self, headers: dict)

Source from the content-addressed store, hash-verified

88 headers["Authorization"] = f"{self.token_type} {self.token}"
89
90 def mask_authentication(self, headers: dict) -> None:
91 """
92 Mask header, e.g. for logging.
93 """
94 headers["Authorization"] = self._masked_token
95
96 @property
97 def _masked_token(self) -> str:

Callers 1

__logMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected