MCPcopy Create free account
hub / github.com/hunvreus/devpush / __init__

Method __init__

app/services/github.py:9–19  ·  view source on GitHub ↗
(
        self, client_id: str, client_secret: str, app_id: str, private_key: str
    )

Source from the content-addressed store, hash-verified

7
8class GitHubService:
9 def __init__(
10 self, client_id: str, client_secret: str, app_id: str, private_key: str
11 ):
12 self.client_id = client_id
13 self.client_secret = client_secret
14 self.app_id = app_id
15 self.private_key = private_key
16 self._jwt_token = None
17 self._jwt_expires_at = None
18 self._time_offset = None
19 self._time_offset_checked_at = None
20
21 def _check_time_offset(self) -> int:
22 """Check time offset between server and GitHub. Returns offset in seconds."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected