diff --git a/docs/changing_default_behavior.rst b/docs/changing_default_behavior.rst index 7bb44c0e..9272f5e9 100644 --- a/docs/changing_default_behavior.rst +++ b/docs/changing_default_behavior.rst @@ -37,7 +37,7 @@ and what the return values of your callback functions need to be. - Function to call to load a user object when token accesses a protected endpoint * - :meth:`~flask_jwt_extended.JWTManager.user_loader_error_loader` - Function that is called when the user_loader callback function returns `None` - * - :meth:`~flask_jwt_extended.JWTManager.user_loader_error_loader` + * - :meth:`~flask_jwt_extended.JWTManager.token_in_blacklist_loader` - Function that is called to check if a token has been revoked * - :meth:`~flask_jwt_extended.JWTManager.claims_verification_loader` - Function that is called to verify the user_claims data. Must return True or False diff --git a/flask_jwt_extended/jwt_manager.py b/flask_jwt_extended/jwt_manager.py index 461b702d..f258f5a9 100644 --- a/flask_jwt_extended/jwt_manager.py +++ b/flask_jwt_extended/jwt_manager.py @@ -313,7 +313,7 @@ def user_loader_error_loader(self, callback): is returned from the :meth:`~flask_jwt_extended.JWTManager.user_loader_callback_loader` callback function. The default implementation will return - a 400 status code with the JSON: + a 401 status code with the JSON: {"msg": "Error loading the user "}