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

Auto Refresh Tokens on 401 Errors #87

Closed
mitchwadair opened this issue Sep 2, 2022 · 0 comments · Fixed by #90
Closed

Auto Refresh Tokens on 401 Errors #87

mitchwadair opened this issue Sep 2, 2022 · 0 comments · Fixed by #90
Assignees
Labels
improvement improving MtheBot in a non-feature way

Comments

@mitchwadair
Copy link
Owner

Right now, we are validating access tokens for Twitch API calls before each request. This slows data fetching down a lot, due to a lot of unnecessary requests. Instead, we should just refresh tokens when needed and validate every hour as required by Twitch. Can take a similar approach to what I did with TESjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improving MtheBot in a non-feature way
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant