code: def logout_handler(self, **args):
          
          response = make_response(
              "<html><script>window.close();</script></html>", 200,
              {'Content-Type': "text/html"})
          response.set_cookie(self.account_cookie_name, expires=0)
          response.set_cookie(self.access_cookie_name, expires=0)
          response.headers['Access-Control-Allow-Origin'] = '*'
          return response
docs: Handler for logout button.
  
          Delete cookies and return HTML that immediately closes window