From 7b03ac7ae17b4f0cf2629467bb7b68d95e1cdc07 Mon Sep 17 00:00:00 2001 From: Benjamin Jaeger Date: Tue, 14 Jan 2025 20:55:57 +0100 Subject: [PATCH] Add user facing error message --- lib/src/firebase_authentication_service.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/firebase_authentication_service.dart b/lib/src/firebase_authentication_service.dart index d1b519c..3cc8670 100644 --- a/lib/src/firebase_authentication_service.dart +++ b/lib/src/firebase_authentication_service.dart @@ -699,6 +699,8 @@ String getErrorMessageFromFirebaseException(FirebaseAuthException exception) { return 'Your password is too weak. Please use a stronger password.'; case 'wrong-password': return 'You seemed to have entered the wrong password. Double check it and try again.'; + case 'invalid-credential': + return 'We didn\'t recognize that email or password. Double check your details or sign up if you don\'t have an account.'; default: return exception.message ?? 'Something went wrong on our side. Please try again';