Open deifos opened 7 years ago
Haven't tried it but isn't it a matter of doing firebase.logout();
?
I encountered the same issue, logging out does not logout the facebook user. When performing the next login you see the previous user logged-in, even though onAuthStateChanged shows user:false. Any idea how to solve this?
Having the same issue on iOS.
I guess it is because the permissions are given in a UIWebView which still remembers the FB user. This link seems to be relevant.
Solved the problem by resetting the iOS emulator. "iOS Simulator" -> "Reset Content and Settings..."
Looking through the FirebaseUI code for ios and android, it looks like there's more to signout than just signing out of firebase: https://github.com/firebase/FirebaseUI-iOS/blob/master/FirebaseAuthUI/FUIAuth.m#L141 https://github.com/firebase/FirebaseUI-Android/blob/master/auth/src/main/java/com/firebase/ui/auth/AuthUI.java#L269
This is not really a bug but more of a question, after I've authenticated once with FB, if I tried to login again with FB I get a screen saying - You have already authorize testapp - There does not seem to be a way to close your FB session and login with a different user.
Anyone else has experienced this?