-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FirebaseUI returns 'Error: The current environment does not support the specified persistence type'. #270
Comments
You must be using Safari in private browsing mode. Sign in with OAuth popup/redirect does not work when 3rd party cookies are disabled in that mode. |
@bojeil-google : This solved the problem. I have a few follow up questions though
Please note that the issue here is - I don't get the UI with the different login options. I'm not talking about selecting one of the login options and not being able to login with it. Based on all of the above, do you still think this is a 3rd party cookie issue? Is there a known workaround to this issue? Thanks |
I think private/incognito modes behave differently depending on browser and whether the device is mobile/desktop. |
@bojeil-google : Thanks |
Any news on this? Having same issue on the Edge browser in InPrivate mode. |
I can reproduce this in Google Chrome Incognito since by default Incognito has 3rd Party Cookies disabled. Are there any updates for this issue? |
Apple seems to blocking third party cookies by default now: https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/. It seems like a big deal. |
Popup flow should work now even when 3P cookies are disabled. Redirect still doesn't. You can fallback to sign in with popup when you encounter these cases. |
@bojeil-google I'm using the "manual" SSO flow and |
It is likely that GSI JS library doesn't work in that mode. As I mentioned, you can just fallback to |
Ok I will create an issue in that repo. We're using |
I followed the example described here to add login support to my application using firebase. Everything works if the application is accessed from a desktop browser. However when you use a mobile browser (safari on iPad or iPhone), you get the error message - Error: The current environment does not support the specified persistence type. Because of the error message, you don't get to see the Firebase UI i.e the option to choose whether to login via Google, Facebook, Twitter, etc.
Note:
https://www.gstatic.com/firebasejs/4.6.2/firebase-app.js
https://www.gstatic.com/firebasejs/4.6.2/firebase-auth.js
The text was updated successfully, but these errors were encountered: