EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 444 forks source link

Facebook login...You have already authorize myapp #312

Open deifos opened 7 years ago

deifos commented 7 years ago

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?

abhayastudios commented 7 years ago

Haven't tried it but isn't it a matter of doing firebase.logout();?

HeikoMueller commented 7 years ago

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?

derFaizio commented 7 years ago

Having the same issue on iOS.

abhayastudios commented 7 years ago

I guess it is because the permissions are given in a UIWebView which still remembers the FB user. This link seems to be relevant.

derFaizio commented 7 years ago

Solved the problem by resetting the iOS emulator. "iOS Simulator" -> "Reset Content and Settings..."

ribrdb commented 6 years ago

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