diff --git a/skyflow/vault/_token.py b/skyflow/vault/_token.py index 7252730..d80f175 100644 --- a/skyflow/vault/_token.py +++ b/skyflow/vault/_token.py @@ -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()