Social Login with Twitter Fails to Redirect

Overview

This article explains why mobile users attempting to sign into Twitter with a social connection are not redirected back to the application and instead are redirected to the Twitter feed.

  • The connection works for Desktop users.

Applies To

  • Twitter
  • Social Connection

Cause

There is a known issue with the OAuth 2.0. PKCE flow on Twitter’s side that is affecting mobile devices.

Solution

  1. When the X/Twitter app is installed on the mobile device, the redirect does not work as expected.
  2. When the app is not installed on the mobile device, the redirect works as expected.

The only known workaround for this issue is to uninstall the X application.