diff --git a/examples/simple.py b/examples/simple.py index 78ba4f6b..85787cda 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -21,9 +21,9 @@ def login(): password = params.get('password', None) if not username: - return jsonify({"msg": "Missing username paramater"}), 400 + return jsonify({"msg": "Missing username parameter"}), 400 if not password - return jsonify({"msg": "Missing password paramater"}), 400 + return jsonify({"msg": "Missing password parameter"}), 400 if username != 'test' or password != 'test': return jsonify({"msg": "Bad username or password"}), 401 diff --git a/flask_jwt_extended/jwt_manager.py b/flask_jwt_extended/jwt_manager.py index 8702ceed..a3da2154 100644 --- a/flask_jwt_extended/jwt_manager.py +++ b/flask_jwt_extended/jwt_manager.py @@ -304,7 +304,7 @@ def token_in_blacklist_loader(self, callback): """ Sets the callback function for checking if a token has been revoked. - This callback function must take one paramater, which is the full + This callback function must take one parameter, which is the full decoded token dictionary. This should return True if the token has been blacklisted (or is otherwise considered revoked, or an invalid token), False otherwise.