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

Class Token

github/Auth.py:156–176  ·  view source on GitHub ↗

This class is used to authenticate with a single constant token.

Source from the content-addressed store, hash-verified

154
155
156class Token(Auth):
157 """
158 This class is used to authenticate with a single constant token.
159 """
160
161 def __init__(self, token: str):
162 assert isinstance(token, str)
163 assert len(token) > 0
164 self._token = token
165
166 @property
167 def token_type(self) -> str:
168 return "token"
169
170 @property
171 def token(self) -> str:
172 return self._token
173
174 @property
175 def _masked_token(self) -> str:
176 return "token (oauth token removed)"
177
178
179class JWT(Auth, ABC):

Callers 1

PickleClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…