I am developing an application using Twitch OAuth authorization flow to get the access token and authorize/login to Twitch account.
I can login with all the correct information most of the times, sometimes I don’t receive any response and the login browser is redirected to Uri : https://api.twitch.tv/kraken/oauth2/login which shows up a 404 error as it is not valid.
What should be done send the same request again?
If a user is logged out, Twitch presents a login form that should POST data to that URI. It’s strange that you would be redirected to that page itself, unless for some reason your browser made a GET request instead.
If you’re still having this issue, I’d try to explain the exact conditions when it occurs since I’ve never witnessed this myself.