-
-
Notifications
You must be signed in to change notification settings - Fork 247
Description
This error handler:
https://github.com/vimalloc/flask-jwt-extended/blob/master/flask_jwt_extended/jwt_manager.py#L117
Is not triggering for me. Instead, a normal exception is raised (UserLoadError).
My app uses blueprints and app factory and adds in flask-jwt-extended like this:
from my_app.auth import jwtm
jwtm.init_app(app)
and in auth.py:
jwtm = JWTManager()
Let me know if there is any info I can provide!
EDIT: It is more odd than I thought. I am not getting this error locally (got confused why my test suite wasn't catching it but I then discovered it is because it is not happening locally, at least not in the scenario I am testing). Will try to replicate it. Noticed another error in the docs though. It says that the default user loader error loader returns a 400 error. It actually returns a 401 error, as mentioned in the section below. (http://flask-jwt-extended.readthedocs.io/en/latest/api.html#flask_jwt_extended.JWTManager.user_loader_error_loader)