Skip to content

Commit 2b5e7f3

Browse files
committed
log new token expiration
1 parent 0d9070a commit 2b5e7f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/common/util/jwt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def _fetch_jwt(self) -> None:
4444
self.token = response.json().get('access_token')
4545
expires_in = response.json().get('expires_in')
4646
# Current time + expiration seconds - grace period
47-
self.expiration = int(time()) + response.json().get('expires_in') - 120
47+
self.expiration = int(time()) + expires_in - 120
48+
LOGGER.info('JWT token fetched', extra={'expiration': self.expiration})
4849

4950
def _validate(self) -> None:
5051
now = int(time())

0 commit comments

Comments
 (0)