firebase/firebase-js-sdk

Facebook sign-ins fail with "Unable to process request due to missing initial state" on Android Chrome

Opened this issue · 4 comments

Operating System

Android 16

Environment (if applicable)

Chrome 140

Firebase SDK Version

12.2.1

Firebase SDK Product(s)

Auth

Project Tooling

Aurelia v1

Detailed Problem Description

We have an increasing number of users on Chrome Android seeing the Unable to process request due to missing initial state... response after they go through the login flow for Facebook and are redirected back to the auth handler. I'm able to reproduce it on my Pixel 6a, but it is also happening on Samsung devices.

Steps and code to reproduce issue

We're following best practices option 3 so there's no cross-domain data or 302 Redirects, it all passes through the proxy transparently.

On Chrome Android, signInWithRedirect and signInWithPopup produce the same issue.

On Firefox Android, signInWithRedirect works while signInWithPopup fails.

There are no other auth errors until the auth handler tab is closed, then the user-cancelled or popup-closed-by-user error comes through.

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

Facing the same issue, any developments on this?

Same issue here! For repro steps on our set up:

  1. Go to https://acim.org/acim/en?accountState=sign-in on an Android device
  2. Select Facebook
  3. Continue with Facebook Account
  4. See "Unable to process request due to missing initial state" error.

Other notes: Sign in with Facebook works on my Mac and iPhone. Sign in with Google works on my Android. Only the cross between Facebook and Android is failing.

Same problem here — I’ve tried all the proposed solutions across GitHub threads, but none of them work. The issue has been occurring since 2021: #4256