Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make oauth tokens automatically renew #5

Open
SocksTheWolf opened this issue Jul 24, 2024 · 1 comment
Open

Make oauth tokens automatically renew #5

SocksTheWolf opened this issue Jul 24, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@SocksTheWolf
Copy link
Owner

SocksTheWolf commented Jul 24, 2024

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 SocksTheWolf self-assigned this Jul 24, 2024
@SocksTheWolf SocksTheWolf added the enhancement New feature or request label Jul 24, 2024
@SocksTheWolf SocksTheWolf added this to the Version 5.0 milestone Jul 24, 2024
@SocksTheWolf
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant