Skip to content

Commit b7c8219

Browse files
authored
Merge pull request #128 from fgblomqvist/master
Fix minor docs errors
2 parents 5bd15eb + b7583c7 commit b7c8219

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/changing_default_behavior.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ and what the return values of your callback functions need to be.
3737
- Function to call to load a user object when token accesses a protected endpoint
3838
* - :meth:`~flask_jwt_extended.JWTManager.user_loader_error_loader`
3939
- Function that is called when the user_loader callback function returns `None`
40-
* - :meth:`~flask_jwt_extended.JWTManager.user_loader_error_loader`
40+
* - :meth:`~flask_jwt_extended.JWTManager.token_in_blacklist_loader`
4141
- Function that is called to check if a token has been revoked
4242
* - :meth:`~flask_jwt_extended.JWTManager.claims_verification_loader`
4343
- Function that is called to verify the user_claims data. Must return True or False

flask_jwt_extended/jwt_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def user_loader_error_loader(self, callback):
313313
is returned from the
314314
:meth:`~flask_jwt_extended.JWTManager.user_loader_callback_loader`
315315
callback function. The default implementation will return
316-
a 400 status code with the JSON:
316+
a 401 status code with the JSON:
317317
318318
{"msg": "Error loading the user <identity>"}
319319

0 commit comments

Comments
 (0)