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

Twitch API doesn't throw TokenExpiredException #403

Open
Nixill opened this issue Jul 19, 2024 · 1 comment
Open

Twitch API doesn't throw TokenExpiredException #403

Nixill opened this issue Jul 19, 2024 · 1 comment

Comments

@Nixill
Copy link

Nixill commented Jul 19, 2024

When I intentionally ran a command post-token expiry (to make sure my autorefresher works), the exception that was thrown by the invalid OAuth token was a BadScopeException, despite the fact that both TokenExpiredException and BadTokenException exist. While it wasn't logged what headers the return response came with, the response code and body was a 401 with:

{
  "error": "Unauthorized",
  "status": 401,
  "message": "Invalid OAuth token"
}
@Hampo
Copy link
Contributor

Hampo commented Jul 19, 2024

The fix for this should probably be combined with this PR - more info good
#378

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

No branches or pull requests

2 participants