SocksTheWolf / TwitchAdOverlay

Displays an overlay whenever a Twitch ad is about to play, with customizable options!
MIT License
2 stars 1 forks source link

Make oauth tokens automatically renew #5

Open SocksTheWolf opened 1 month ago

SocksTheWolf commented 1 month ago

Currently, the user has to renew their oauth tokens every couple of weeks. This can be jarring and would be better to streamline this ease of use by making it such that the token auto-renews.

https://dev.twitch.tv/docs/authentication/refresh-tokens/

This would require also saving the refresh token in addition to the current access token.

SocksTheWolf commented 1 month ago

The downside to this is that we would need to have code as well as a client secret, which could be fine, but the issue is that the current auth method is missing a client secret (source code is visible so this won't happen) or a code (need said secret) or the refresh token (need a code).

You could probably use twitchtokengenerator, but you'll also be using their client id/secret (apparently?), which is fine but you'll be in a group sharing that same token which may be less than ideal.