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 0d9070a commit 2b5e7f3Copy full SHA for 2b5e7f3
src/common/common/util/jwt.py
@@ -44,7 +44,8 @@ def _fetch_jwt(self) -> None:
44
self.token = response.json().get('access_token')
45
expires_in = response.json().get('expires_in')
46
# Current time + expiration seconds - grace period
47
- self.expiration = int(time()) + response.json().get('expires_in') - 120
+ self.expiration = int(time()) + expires_in - 120
48
+ LOGGER.info('JWT token fetched', extra={'expiration': self.expiration})
49
50
def _validate(self) -> None:
51
now = int(time())
0 commit comments