mirror of
https://github.com/clearml/clearml
synced 2025-03-10 05:50:13 +00:00
Fix pyjwt.decode() in >=2.2.0 does not support kwargs (and thus fails when unsupported "verify" kwarg is used)
This commit is contained in:
parent
6b30d06971
commit
50e09ef29b
@ -71,7 +71,7 @@ class TokenManager(object):
|
||||
def get_decoded_token(cls, token):
|
||||
""" Get token expiration time. If not present, assume forever """
|
||||
return jwt.decode(
|
||||
token, verify=False,
|
||||
token,
|
||||
options=dict(verify_signature=False),
|
||||
algorithms=get_default_algorithms())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user