Twitch API doesn't throw TokenExpiredException
Nixill opened this issue · 1 comments
Nixill commented
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"
}