I'm using firebase authentication to authenticate users in my Flutter app ,when the user entered his right password the app shows him the home page normally but when the password is wrong doesn't happened nothing, I want to show an alert every time the user enters a wrong password, How can I do this?
Use the currentUser() method:
if (await FirebaseAuth.instance.currentUser() != null) {
// signed in
} else {
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With