Can't re-authenticate with Google/Facebook on app hard-restart
See original GitHub issueHow to reproduce:
- Login to your account
- Close the app and remove it from the task view
- Reopen the app
- Call
reauthenticate()
IS: Error: Not logged in with google or Not logged in with facebook
SHOULD: Re-authenticate
On restart the variables
// firebase.android.js - Line 10,11,12
firebase._rememberedContext = null;
firebase._googleSignInIdToken = null;
firebase._facebookAccessToken = null;
are reset to null. They should be stored in the appSettings.
Issue Analytics
- State:
- Created 6 years ago
- Comments:22 (17 by maintainers)
Top Results From Across the Web
Recover Your Facebook Account if You Can't Log In.
Go to the Find Your Account page at facebook.com/login/identify and follow ... Learn what to do if you can't reset your password because...
Read more >Can't sign in from a third-party service - Google Account Help
A general error that your sign-in was unsuccessful. · The service you're signing in from doesn't provide enough information to prove it's you....
Read more >How to Log Into Facebook If You Lost Access to Code Generator
Yes, you can access Facebook without a confirmation or reset code. Facebook's Code Generator is only one of many layers of Facebook security....
Read more >7 ways to troubleshoot if Facebook is not working on your device
Refresh your browser · Check to see if Facebook is online · Clear your browser's cache · Close and reopen the app ·...
Read more >How to Recover Your Facebook Account When You Can't Login
So you forgot your Facebook login and password and can't log into Facebook anymore? Or was your Facebook account hacked, meaning you can't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After reviewing the code base (specifically
login
) and the firebase documentation, it seems to me that you are correct: Anonymous users have to be linked as well!However, I’m still curious about two things: First, why this change fixes the ominous
FirebaseAuthUserCollisionException
, which occured to a couple of people. Obviously, the real reason lies somewhere else. And second, why didn’t we observe the creation of two users as well. This is something I have to investigate.In the meantime @EddyVerbruggen , feel free to revert it.
Thanks for @RaphaelJenni reporting!
This is my code in a condensed way. You can extract the code you want for the README.