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

Firebase Auth is no longer working in incognito mode

Open opolo opened this issue 6 years ago • 50 comments

[REQUIRED] Describe your environment

  • Operating System version: Windows 10
  • Browser version: Version 81.0.4044.129 (Official Build) (64-bit)
  • Firebase SDK version: 7.13.1
  • Firebase Product: auth

[REQUIRED] Describe the problem

Multiple of our users has reported, they are no longer able to login and use our product... After some investigation, it seems to happen for all the users, which accesses our platform in incognito mode.

It seems to no longer be possible to use the firebase auth SDK in Google Incognito mode. The exact same users can log in with the exact same credentials or SSO integrations through firebase in non-incognito.

Steps to reproduce:

If users try to use firebase authentication on our platform in incognito mode, the error: {code: "auth/web-storage-unsupported", message: "This browser is not supported or 3rd party cookies and data may be disabled.", a: null} is thrown from the SDK.

I believe it potentially can be an issue in a newer Chrome update, as I know Google has been experimenting with having Chrome block 3rd Party Cookies (I believe they experimented with it in version 83 of Chrome, which I am not using though).

opolo avatar May 01 '20 18:05 opolo

@opolo which sign in method and provider are you using? We are aware that popup-based signs in particular require localStorage and will not work when it is disabled. As a potential workaround you can try signing directly with the provider (Google, Facebook, etc) using their SDK and then signing into Firebase using signInWithCredential().

avolkovi avatar May 18 '20 21:05 avolkovi

Hey @opolo. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar May 25 '20 01:05 google-oss-bot

I just started getting this error with Google Chrome 83 today, trying to sign in via a Google account while in Incognito mode.

image

brianmhunt avatar May 25 '20 15:05 brianmhunt

Just updated to Chrome Version 83.0.4103.61 (Official Build) (64-bit) Our firebase auth integration no longer appears to work..investigating. This is not in incognito mode.

Still works with Chrome Canary Version 85.0.4157.4 (Official Build) canary (64-bit), Firebox, and Safari.

Update: Clearing Site Data instantly allowed Firebase Auth UI to appear correctly. Not sure of the specific cause. Sorry for the issue noise. Cheers.

tmcf avatar May 28 '20 06:05 tmcf

@avolkovi it was one of our users that faced this issue; I do not believe I can get the information again. Perhaps the comments by @brianmhunt or @tmcf helps.

opolo avatar May 30 '20 09:05 opolo

Also getting this error after upgrading to Chrome 83.0.4103.61 (OSX).

  • Firebase v4.12.0
  • GoogleAuthProvider
  • signInWithRedirect
  • incognito mode

raineorshine avatar Jun 04 '20 23:06 raineorshine

Also getting this issue after updating to Chrome 83. It had been working consistently in incognito mode before that. Same error message as @brianmhunt

{
  "code": "auth/web-storage-unsupported",
  "message": "This browser is not supported or 3rd party cookies and data may be disabled."
}

mparizeau-pdftron avatar Jun 05 '20 16:06 mparizeau-pdftron

Also getting this issue after updating to Chrome 83. It had been working consistently in incognito mode before that. Same error message as @brianmhunt

{
  "code": "auth/web-storage-unsupported",
  "message": "This browser is not supported or 3rd party cookies and data may be disabled."
}

Same problem with my app. It happens in incognito mode randomly and for some users it is consistent.

ManiDoraisamy avatar Jun 14 '20 19:06 ManiDoraisamy

This is happening to my app - https://app.zenuml.com . For myself, it is consistent on Chrome - Version 83.0.4103.106 (Official Build) (64-bit). Haven't heard anything from our users.

It works fine on Chrome Canary Version 85.0.4175.0 (Official Build) canary (64-bit). So I am not sure if it is the browser's issue or not.

MrCoder avatar Jun 18 '20 07:06 MrCoder

Sorry, I think this may have been closed by mistake. Re-opening.

schmidt-sebastian avatar Jun 18 '20 19:06 schmidt-sebastian

If you change the Chrome browser cookie settings from the default value of "Block third-party cookies in Incognito" to "Allow all cookies", Google authentication then succeeds in Chrome incognito: image

(Not that this should be a work-around, of course -- just as additional information for the issue.)

Note also that once all cookies have been allowed, authentication then triggers console warnings regarding a missing 'SameSite' attribute: image

jesselve avatar Jun 20 '20 15:06 jesselve

I'm also having this issue only in Chrome in Incognito:

  • Version 83.0.4103.116 (Official Build) (64-bit)
  • MacOS 10.15.5 (19F101)

Happy to provide more info to debug if needed.

TheOtherJFK avatar Jun 27 '20 20:06 TheOtherJFK

Any solutions?? I am facing the same issues

vggarg96 avatar Jun 29 '20 14:06 vggarg96

Any solutions?? I am facing the same issues

I am facing the same issue intermittently. But, if I login using this sample app - https://fir-ui-demo-84a6c.firebaseapp.com/ and try logging in my app, it seems to work. You can use this as a workaround, if it is happens occasionally.

ManiDoraisamy avatar Jun 29 '20 14:06 ManiDoraisamy

Any solutions?? I am facing the same issues

I am facing the same issue intermittently. But, if I login using this sample app - https://fir-ui-demo-84a6c.firebaseapp.com/ and try logging in my app, it seems to work. You can use this as a workaround, if it is happens occasionally.

I am able to login normally but not in incognito mode

vggarg96 avatar Jun 29 '20 16:06 vggarg96

I deleted my previous comment. I will try to give this issue more light

scottcrossen avatar Jun 29 '20 22:06 scottcrossen

chrome://settings/cookies?search=allow+all

Allow All Cookies !

curiouscod3 avatar Jul 07 '20 02:07 curiouscod3

(Repeating my previous comment that changing the client browser settings to "allow all" -- or per the comment of @curiouscod3 -- is NOT an acceptable work-around. We cannot expect our users to make this kind of change in their browsers.)

jesselve avatar Jul 08 '20 21:07 jesselve

I have 10K users of my application. @curiouscod3 are you suggesting that I should ask all my users to do that changes in there browser seriously????

vggarg96 avatar Jul 09 '20 13:07 vggarg96

tracking internally via b/161150773

MeghaB avatar Jul 13 '20 19:07 MeghaB