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 1f49f41 commit f2ff63eCopy full SHA for f2ff63e
jwt/jwk_set_cache.py
@@ -5,7 +5,7 @@
5
6
7
class JWKSetCache:
8
- def __init__(self, lifespan: int) -> None:
+ def __init__(self, lifespan: float) -> None:
9
self.jwk_set_with_timestamp: Optional[PyJWTSetWithTimestamp] = None
10
self.lifespan = lifespan
11
jwt/jwks_client.py
@@ -20,9 +20,9 @@ def __init__(
20
cache_keys: bool = False,
21
max_cached_keys: int = 16,
22
cache_jwk_set: bool = True,
23
- lifespan: int = 300,
+ lifespan: float = 300,
24
headers: Optional[Dict[str, Any]] = None,
25
- timeout: int = 30,
+ timeout: float = 30,
26
ssl_context: Optional[SSLContext] = None,
27
):
28
if headers is None:
0 commit comments