You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[firebase_auth] Sensitive data stored in com.google.android.gms.signin.xml and com.google.firebase.auth.api.Store.* on Android – No option to disable persistence
#17424
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Summary
When using
firebase_auth
on Android, sensitive user information (email, UID, tokens) is automatically stored in:/data/data/<app-id>/shared_prefs/com.google.android.gms.signin.xml
/data/data/<app-id>/shared_prefs/com.google.firebase.auth.api.Store.[...]
This happens even when we don't explicitly enable persistence, and there’s no documented way to disable it via the Flutter SDK.
Why is this a concern?
FirebaseAuth.instance.setPersistence(Persistence.NONE)
only works on web platforms. It has no effect on Android/iOS.Steps to Reproduce
firebase_auth
on Android (e.g., with Google or email/password)./data/data/<app-id>/shared_prefs/
directory on a rooted device..xml
files containing user data and session tokens.What we expect
setPersistence(Persistence.NONE)
does on Web).References
Beta Was this translation helpful? Give feedback.
All reactions