When authenticate() enters execution, the parameter self.__is_closed is set to False with the expectation that the webserver will start running. However, if user_token is supplied, the webserver will never run. The check for closing is still performed, causing the function to sleep indefinitely.
When
authenticate()
enters execution, the parameterself.__is_closed
is set to False with the expectation that the webserver will start running. However, ifuser_token
is supplied, the webserver will never run. The check for closing is still performed, causing the function to sleep indefinitely.