mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +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):
|
def get_decoded_token(cls, token):
|
||||||
""" Get token expiration time. If not present, assume forever """
|
""" Get token expiration time. If not present, assume forever """
|
||||||
return jwt.decode(
|
return jwt.decode(
|
||||||
token, verify=False,
|
token,
|
||||||
options=dict(verify_signature=False),
|
options=dict(verify_signature=False),
|
||||||
algorithms=get_default_algorithms())
|
algorithms=get_default_algorithms())
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user