Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
254 stars 38 forks source link

UserAuthenticator sleeps forever when `user_token` is supplied but no callback function is set #174

Closed Tempystral closed 1 year ago

Tempystral commented 1 year ago

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.