I am loading https://api.twitter.com/oauth/authorize within a WebView for signing into my app via Twitter.
While this works fine when the user’s login credentials are correct, I have noticed a redirect loop is encountered when the user enters incorrect credentials.
If a user’s login info is incorrect, they will be redirected to the following link [1]. However, I have noticed that this link fails to load on Android devices due to a redirect loop. I have further replicated this error via Chrome Dev Tools by using an Android user agent. Please note that the link seems to be fine if using a desktop or iOS user agent.
Due to this, I have concluded that this is likely an error within the API.
Has anyone else encountered this error?
[1] https://api.twitter.com/login/error?username_or_email=fsafadsf&redirect_after_login=https%3A%2F%2Fapi.twitter.com%2Foauth%2Fauthorize%3Foauth_token%3DxD0CSAMPLE_TOKENA