Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/changing_default_behavior.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flask_jwt_extended/jwt_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <identity>"}

Expand Down