firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

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

Open TomorrowToday opened this issue 3 months ago • 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.

TomorrowToday avatar Sep 16 '25 19:09 TomorrowToday

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

google-oss-bot avatar Sep 16 '25 19:09 google-oss-bot

Facing the same issue, any developments on this?

metalllus avatar Sep 27 '25 14:09 metalllus

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.

Corrob avatar Oct 02 '25 15:10 Corrob

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: https://github.com/firebase/firebase-js-sdk/issues/4256

mateuszradny avatar Nov 11 '25 08:11 mateuszradny