Skip to content

Commit

Permalink
Threshold to expire in 10 min to test
Browse files Browse the repository at this point in the history
  • Loading branch information
jboucourt committed Aug 6, 2024
1 parent f5994d7 commit 1d3e19e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gestalt/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def _validate_token_expiration(self) -> None:
return None

expire_time = str(expire_time)
threshold = timedelta(minutes=10) # timedelta(days=EXPIRATION_THRESHOLD_DAYS)
threshold = timedelta(
minutes=10) # timedelta(days=EXPIRATION_THRESHOLD_DAYS)
delta_time = expire_time - datetime.now()
if delta_time <= threshold:
print(f"Re-auth with vault.")
Expand Down

0 comments on commit 1d3e19e

Please sign in to comment.