-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
[RFE] Improve Auth Management #38
Labels
enhancement
New feature or request
Comments
mitchwadair
added a commit
that referenced
this issue
Aug 27, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 27, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 27, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 27, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 27, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 27, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
mitchwadair
added a commit
that referenced
this issue
Aug 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Currently every request to Twitch made be TES validates the access token first. This could cause some rate-limiting issues (maybe, not sure how those are handled) for users of the library that have large loads of users or something that would cause them to need to make those calls. It also makes every operation requiring the API very inefficient, especially those using pagination.
Describe the solution you'd like
An auth service type thing that manages the app access token and refreshing it. This should also mean that should a request be made where an invalid token is used (is possible, and could also happen with some extremely rare timing), that it is handled as well.
The auth service should (for app access tokens, i.e. for webhooks users), should store the current token and refresh token and schedule token refresh. It should also periodically verify the token. Periodic verification should either happen on some kind of timer, or maybe randomly before some requests are made. A good way to maybe do this is have some kind of request manager that would select some requests to verify every so often
Some possible examples of usage:
The text was updated successfully, but these errors were encountered: