We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b5883 commit 010aefeCopy full SHA for 010aefe
sypht/client.py
@@ -10,7 +10,7 @@
10
SYPHT_AUTH_ENDPOINT = "https://auth.sypht.com/oauth2/token"
11
SYPHT_LEGACY_AUTH_ENDPOINT = "https://login.sypht.com/oauth/token"
12
SYPHT_OAUTH_COMPANY_ID_CLAIM_KEY = "https://api.sypht.com/companyId"
13
-TOKEN_EXPIRY_BUFFER = 10
+TOKEN_EXPIRY_BUFFER_SECONDS = 10
14
15
16
def _iter_chunked_sequence(seq, size):
@@ -149,7 +149,7 @@ def _authenticate_client(self):
149
raise ValueError(f"Invalid authentication endpoint: {self.auth_endpoint}")
150
151
self._auth_expiry = datetime.utcnow() + timedelta(
152
- seconds=expires_in - TOKEN_EXPIRY_BUFFER
+ seconds=expires_in - TOKEN_EXPIRY_BUFFER_SECONDS
153
)
154
self._access_token = access_token
155
0 commit comments