-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [firebase_auth] Firebase Auth Web loses persistence after upgrading to the latest version #9089
Comments
@jomiplaz |
Same issue. Both of my web apps are broken. |
This is a show-stopper. I can't release a new build until this is fixed. $ flutter doctor -v [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc4) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.69.1) [✓] Connected device (2 available) [✓] HTTP Host Availability • No issues found! |
Nothing fancy in my code. I listen to the authStateChanges stream. I get null user on browser refresh. I can login, I see the user, then refresh and I get back null for user. All my packages are the latest, and latest flutter. |
Same issue found here. The result is getting this error. |
I solved a issue similar to this, following steps.
You can get auth also after pressing a refresh button on Web. |
I'm waiting for the update. Is this a high priority? |
The root cause seems to be mentioned here: #9117 (comment) |
My web app have the same issue after i updated to this latest version . im glade to see this reported . any ETA for the fix |
Same issue |
Same here. I'm really amazed how bad QA apparently is that this bug is not catched in the process. It's a big one. And especially since this is apparently a problem in a point release with firebase_auth: 3.4.1 to 3.4.2. This should REALLY not happen!!! |
Another good example of the more tests a code base has, the worse the quality. Coders spent too much time writing tests, and not enough time writing quality code. And they use the tests as an excuse for sloppiness as long as their tests pass. This bug is obvious. Should never have been released. |
Same here for web |
Fully agree, it's a mess. And it's not the first time |
I cannot disagree more. Last time I checked, there was no integration test for phone authentication on the web, which did not inspire confidence. How would this pass otherwise #9097 (comment) (phone auth not working at all) ?! So the issue is: there are good, integration test missing. If the core public API isn't properly tested on every platform, this type of things will eventually happen on multi platform packages that are subject to multi platforms hickups. Some integration tests are commented (I think it was the storage tests), some core feature like phone auth are just not tested or not tested on some platforms, or not fully tested. As far I know flutterfire is backed up by google (I could be wrong here). A less rigid QA process for an open source project is understandable but for a project that has a commercial goal in mind, I find it unprofessional. So I hope this won't just slide once the issue is resolved because this is going to happen again in the future and then some more. I did not say it was easy to do, but not testing core features on every platform should not fly either.. I hope some work will be done in that department Note: to write phone auth integration tests, you can call a specific firebase emulator endpoint to get the verification code needed to do the proper testing. That endpoint is |
#9138 persists for me using these dependency_overrides:
|
Same issue with |
Same issue |
same issue, production is down because of it... |
Firebase is an amazing product, and Flutterfire is an amazing integration, and I think the bug is totally understandable - software will be software - but it feels very scary to me that this issue has been open for 2 weeks in a stable channel, and it received a stable production release anyway, and seemingly has received no response or fix (that I've seen, anyway - I could be wrong.) I think teams (including ours) are looking for assurance of some kind. I realize this isn't fair to the maintainers, just trying to express how I think other development teams may feel. There is an incredible reliance on Firebase, and the Auth product in particular, in the Flutter industry, and it feels scary to have to deal with these issues on our own. |
/cc @russellwheatley |
That's why integration tests exist. Honestly this is bigger than a bug... |
Agree, similar issue #9166 looks nobody really did test on all platform release. |
|
+1 |
I've literally been sitting here idle patiently waiting for two weeks now. Is this fixed yet? What is going on? I'm running a business and need to update my software. Revert back to the old build if you have too. I tried to revert back and couldn't get it working. Could someone just fix it and post a new build? |
The team is actively working on fixing this #9138. Please subscribe to the PR for updates. |
This fix has just been released in the latest version |
I upgraded to 3.6.0 but see the same problem. I updated my original issue with a new dependency list. The rest of the problem description remains the same. #9241 (comment) |
True. There is another problem with the auth state in web since |
Also check #9243 |
I still get the same problem with 3.6.0. Did you add a regression test for it? #9241 |
On my side it has been fixed while upgrading to
|
After waiting for about 2 week, issue has been fixed. thanks ❤️. |
Bug report
Describe the bug
Firebase Auth Web loses persistence after upgrading to the latest version.
Steps to reproduce
The text was updated successfully, but these errors were encountered: