Verified Commit 2e1c6d19 authored by Peter Stanko's avatar Peter Stanko
Browse files

disable token verification, only decode

parent 59c9e4de
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, algorithms=["HS256"])
    decoded = jwt.decode(token, options={"verify_signature": False})
    expiration_stamp = decoded['exp']
    exp_date = datetime.datetime.fromtimestamp(int(expiration_stamp))
    present = datetime.datetime.now()