Teekeks / pyTwitchAPI

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

Handle status code 403 in refresh_access_token(...) #324

Closed PythBuster closed 3 months ago

PythBuster commented 3 months ago

If client secret is invalid, refresh_access_token() throws a KeyError while trying to access the data key "access_token", because the response status code 403 is handled correctly.

Implementation: