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

Create in library way to easily load user auth from storage if existing #207

Closed Teekeks closed 1 year ago

Teekeks commented 1 year ago

Currently, you need ~20 lines of boilerplate code to either generate a new user auth token or load from storage / update to storage if exists.

This is some basic simple setup that most project might need so adding this to the library as a one line option would likely be a good idea.