Add option to force login for all requests
Use a before_request decorator to make it easier to have a centralized check if the user is logged in or not and add the option to force login for all requests, managed in the before_request.
Use a before_request decorator to make it easier to have a centralized check if the user is logged in or not and add the option to force login for all requests, managed in the before_request.