Reputation: 589
I'm using FirebaseAuth.createUserWithEmailAndPassword()
for register and FirebaseAuth.signInWithEmailAndPassword()
for login.
After doin that, FirebaseAuth.getCurrentUser()
is never null, only after doin a FirebaseAuth.signOut()
.
So the questions is: how to intercept if account password has been changed?
Upvotes: 0
Views: 649
Reputation: 599641
firebaser here
Firebase Authentication doesn't fire any event when a user changes their password.
You can of course catch most changes by embedding the firing of an event into your own application code. But that can be circumvented by users willing to spend the effort.
So there currently is no reliable way to detect whenever a user changes their password. I'd recommend that you file a feature request, since those do often help the team determines priorities.
Upvotes: 1