Verified Commit 5fc70373 authored by Peter Stanko's avatar Peter Stanko
Browse files

new version of pyjwt requires algorithms for decode function

parent e4518707
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ def _validate_token(token: str) -> bool:

    """
    import jwt
    decoded = jwt.decode(token, verify=False)
    decoded = jwt.decode(token, verify=False, algorithms=["HS256"])
    expiration_stamp = decoded['exp']
    exp_date = datetime.datetime.fromtimestamp(int(expiration_stamp))
    present = datetime.datetime.now()