السلام عليكم
حل مشكلة تسجيل الدخول بأستخدام BACKEND FIREBASE
E/RecaptchaCallWrapper( 5512): Initial task failed for action RecaptchaAction(action=signInWithPassword)with exception - An internal error has occurred. [ INVALID_LOGIN_CREDENTIALS ]T
FIREBASE - FLUTTER
كود FLUTTER هو:
CustomButtonAuth(
title: "login",
onPressed: () async {
try {
final credential = await FirebaseAuth.instance
.signInWithEmailAndPassword(
email: email.text, password: password.text);
Navigator.of(context).pushReplacementNamed("homepage");
} on FirebaseAuthException catch (e) {
if (e.code == 'user-not-found') {
print('No user found for that email.');
} else if (e.code == 'wrong-password') {
print('Wrong password provided for that user.');
}
}
}),
التعليقات