Describe the bug
All the routes which are protected by login_required decorator returns a internal server error response, this might leads to crash app, so a handler is required for unauthorized users.
To Reproduce
Try to access any route that is protected using login_required decorator.
Expected behavior
Should return a 401(Unauthorized response) error message.
Screenshots
Desktop (please complete the following information):
Describe the bug All the routes which are protected by login_required decorator returns a internal server error response, this might leads to crash app, so a handler is required for unauthorized users.
To Reproduce Try to access any route that is protected using login_required decorator.
Expected behavior Should return a 401(Unauthorized response) error message.
Screenshots
Desktop (please complete the following information):