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

[Question] 1 Time Authentication #281

Closed ftk789 closed 11 months ago

ftk789 commented 11 months ago

Is it possible to make it only Authentication once? Instead of it opening the Auth link everytime I execute the python script?

Teekeks commented 11 months ago

Yes, you can use UserAuthenticationStorageHelper (or implement such a mechanic on your own) to keep a token between program restarts.

I wrote a tutorial here: https://pytwitchapi.dev/en/latest/tutorial/reuse-user-token.html

ftk789 commented 11 months ago

Yes, you can use UserAuthenticationStorageHelper (or implement such a mechanic on your own) to keep a token between program restarts.

I wrote a tutorial here: https://pytwitchapi.dev/en/latest/tutorial/reuse-user-token.html

Oh my god, What a fast reply, Thank you very much, I didn't know there was a Storage Helper by you, Thank you very much <3