diff --git a/lib/src/infrastructure/firebase_auth_facade.dart b/lib/src/infrastructure/firebase_auth_facade.dart index f195957..6216895 100644 --- a/lib/src/infrastructure/firebase_auth_facade.dart +++ b/lib/src/infrastructure/firebase_auth_facade.dart @@ -93,8 +93,8 @@ class FirebaseAuthFacade implements AuthFacade { password: password, ); return const Auth.success(); - } on PlatformException catch (e) { - if (e.code == 'ERROR_EMAIL_ALREADY_IN_USE') { + } on FirebaseAuthException catch (e) { + if (e.code == 'email-already-in-use') { return const Auth.failure(AuthFailure.emailAlreadyInUse()); } else { debugPrint(e.toString());