more ty, part 2 (#38379)

This commit is contained in:
Adeeb Shihadeh
2026-07-19 11:02:00 -07:00
committed by GitHub
parent 19ecc37de8
commit f0d93eb32d
57 changed files with 194 additions and 165 deletions
+2
View File
@@ -27,6 +27,8 @@ class Api:
return api_get(endpoint, method=method, timeout=timeout, access_token=access_token, **params)
def get_token(self, payload_extra=None, expiry_hours=1):
if self.private_key is None:
raise RuntimeError("private key is not configured")
now = datetime.now(UTC).replace(tzinfo=None)
payload = {
'identity': self.dongle_id,