Skip to content

Commit 010aefe

Browse files
author
wilmeryan
committed
added SECONDS suffix to TOKEN_EXPIRY_BUFFER_SECONDS
1 parent e3b5883 commit 010aefe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sypht/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
SYPHT_AUTH_ENDPOINT = "https://auth.sypht.com/oauth2/token"
1111
SYPHT_LEGACY_AUTH_ENDPOINT = "https://login.sypht.com/oauth/token"
1212
SYPHT_OAUTH_COMPANY_ID_CLAIM_KEY = "https://api.sypht.com/companyId"
13-
TOKEN_EXPIRY_BUFFER = 10
13+
TOKEN_EXPIRY_BUFFER_SECONDS = 10
1414

1515

1616
def _iter_chunked_sequence(seq, size):
@@ -149,7 +149,7 @@ def _authenticate_client(self):
149149
raise ValueError(f"Invalid authentication endpoint: {self.auth_endpoint}")
150150

151151
self._auth_expiry = datetime.utcnow() + timedelta(
152-
seconds=expires_in - TOKEN_EXPIRY_BUFFER
152+
seconds=expires_in - TOKEN_EXPIRY_BUFFER_SECONDS
153153
)
154154
self._access_token = access_token
155155

0 commit comments

Comments
 (0)