code: def configure_login(app):
      
      from heman.auth import login_manager, login
      login_manager.init_app(app)
  
      @app.teardown_request
      def force_logout(*args, **kwargs):
          login.logout_user()
docs: Configure login authentification
  
      Uses `Flask-Login <https://flask-login.readthedocs.org>`_