Skip to content
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

SignOut does not delete user's data on disk #119

Open
Dongata opened this issue May 5, 2021 · 3 comments
Open

SignOut does not delete user's data on disk #119

Dongata opened this issue May 5, 2021 · 3 comments

Comments

@Dongata
Copy link

Dongata commented May 5, 2021

We're using verifyPhoneNumber and signInWithVerificationId (Sms flow) for authenticating our users, but if the user then signs out, verifyPhoneNumber no longer works as expected.
We had debugged with our team using adb logcat, and a custom logger to trace what the cellphone is doing, and then when we called the signout and then the verifyPhoneNumber function again throws this

05-04 18:55:23.983 15867 16449 D FirebaseAuth: Notifying id token listeners about a sign-out event.
05-04 18:55:23.983 15867 16449 D FirebaseAuth: Notifying auth state listeners about a sign-out event.
05-04 18:55:24.497 15867 16449 W BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak@62af8a3
05-04 18:55:24.526 15867 15867 W BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak@62af8a3
05-04 18:55:25.617 15867 16163 D FirebaseAuth: Notifying id token listeners about user ( A_FIREBASE_UUID ).
05-04 18:55:25.617 15867 16163 D FirebaseAuth: Notifying auth state listeners about user ( A_FIREBASE_UUID  ).

This kind of showed us that the uuid still stored on disk. What's even weirder, is that, when we call getIdToken it gives us a non expired idToken, this makes us think that maybe the sign out function is not working as expected (The expectation is that the complete data of the user is erased at least in the context of the application).

Is this the correct behavior?
What can we do for this to really clean the user's data?

Thanks.

@mayank-sol
Copy link

Any progress on this issue?, we are also facing the same behaviour. Even after signOut function call, user details are still stored on the memory.

@Dongata
Copy link
Author

Dongata commented Mar 9, 2022

@mayank-sol if you want you can use @goiarlabs/cordova-plugin-firebase-authentication
We have to solve it manually on a fork

@mayank-sol
Copy link

@Dongata Thanks, I will check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants