diff --git a/flask_jwt_router/_routing.py b/flask_jwt_router/_routing.py index 173fdc2..c203e64 100644 --- a/flask_jwt_router/_routing.py +++ b/flask_jwt_router/_routing.py @@ -189,6 +189,9 @@ def _handle_token(self): return abort(401) except AttributeError: return abort(401) + except TypeError: + # This is raised from auth_results["email"] not present + abort(401) else: # Sometimes a developer may define the auth field name as Bearer or Basic auth_header = request.headers.get("Authorization")