We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ffc4d commit 46c1b9bCopy full SHA for 46c1b9b
flask_jwt_extended/jwt_manager.py
@@ -50,8 +50,13 @@ def init_app(self, app):
50
"""
51
Register this extension with the flask app
52
53
+ # Save this so we can use it later in the extension
54
app.jwt_manager = self
55
56
+ # Set propagate exceptions, so all of these error handlers properly
57
+ # work in production
58
+ app.config['PROPAGATE_EXCEPTIONS'] = True
59
+
60
@app.errorhandler(NoAuthorizationError)
61
def handle_auth_error(e):
62
return self._unauthorized_callback(str(e))
0 commit comments