So on the redirect to Twitch?
That suggests that the cert bundle on the computer or browser you are using is out of date, or your clock is super out of sync which can cause odd problems.
Not an API issue per sae, but a problem with the connecting client.