Skip to content

Commit

Permalink
Merge pull request #75 from skyflowapi/release/23.3.2
Browse files Browse the repository at this point in the history
Release/23.3.2/SK-548
  • Loading branch information
skyflow-bharti authored Mar 17, 2023
2 parents 5fdaf14 + 895affe commit 2d4d314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyflow/vault/_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def tokenProviderWrapper(storedToken: str, newTokenProvider, interface: str):
try:
decoded = jwt.decode(storedToken, options={
"verify_signature": False, "verify_aud": False})
if time.time() + 300 < decoded['exp']:
if time.time() < decoded['exp']:
return storedToken
else:
newToken = newTokenProvider()
Expand Down

0 comments on commit 2d4d314

Please sign in to comment.