In my flask app, I have another WSGI app that needs to be started in the main thread. I have login required check in my other end points, however, the WSGI middleware app can be