79477170

Date: 2025-03-01 06:18:12
Score: 2
Natty:
Report link

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!

Reasons:
  • RegEx Blacklisted phrase (2.5): please share your
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahima Sanketh