Reputation: 1
Guys I make app on react native and make configuration with firebase . The register user is ok, supe. But whe I try login ok app, show error "Auth/emails invalaid" Show image please.
I check all configurations 3 times its fine... No have on code I need helpppppp for to fix this prblem and fiiinihs this job.
Upvotes: 0
Views: 21
Reputation: 41
it looks like you're facing an "auth/invalid-email" error when trying to log in with Firebase in your React Native app.
Based on your description, here are a few possible reasons for this issue:
Double-Check:
Email Format Validation Make sure you're passing the email value correctly in your login function:
await signInWithEmailAndPassword(auth, email.trim(), password);
Sometimes extra spaces or typos in the email can cause this error.
Firebase SDK Setup Ensure you've added:
@react-native-firebase/app
@react-native-firebase/auth
Also, check your google-services.json (Android) or GoogleService-Info.plist (iOS) files are in the correct folder.
Firebase Auth Enabled
Go to your Firebase Console → Authentication → Sign-in method
Check if Email/Password sign-in is enabled.
App Build Restart If you made any configuration changes, restart the app
using:
npx react-native run-android
or
npx react-native run-ios
If you've already tried all these steps and the error still happens, please share your login code snippet + Firebase version, and I can take a deeper look!
Upvotes: 0