Enable Firebase Authentication for a React Native App
Firebase Authentication handles sign-up, sign-in, password reset, and identity for Firebase-backed Instamobile apps. Enable only the providers your app actually uses.
Quick Answer
Open Firebase Console, go to Authentication > Sign-in method, enable the providers used by the app, complete any provider-specific native setup, then run the app and confirm a new test user appears under Authentication > Users.
Common Providers
| Provider | Firebase Console setup | Extra native setup |
|---|---|---|
| Email/password | Enable Email/Password. | Usually none. |
| Phone | Enable Phone. | iOS APNs and Android SHA fingerprints are recommended for production. |
| Apple | Enable Apple. | Apple Developer App ID capability and Xcode capability. |
| Enable Google. | Correct Firebase config files and reversed client id on iOS if the app uses Google Sign-In. | |
| Enable Facebook and add app credentials. | Meta app setup, bundle/package configuration, and platform keys. |
1. Enable Auth in Firebase Console
- Open Firebase Console.
- Select your Firebase project.
- Go to Authentication.
- Click Get started if this is a new project.
- Open Sign-in method.
- Enable the providers used by your app.
Do not enable providers only because they appear in demo data. Match the providers to your product requirements and release plan.
2. Confirm Native Firebase Config Files
Auth will fail or connect to the wrong project if the app still uses demo config files.
Check:
| Platform | File |
|---|---|
| iOS | ios/<AppName>/GoogleService-Info.plist |
| Android | android/app/google-services.json |
If you changed the bundle identifier or Android application id, download fresh config files from Firebase.
3. Configure Provider-Specific Requirements
Use these guides when the app exposes the related login option:
Provider setup is not only a Firebase switch. Apple, Google, Facebook, and phone auth can require platform credentials that must match the app bundle id or package name.
4. Test Sign-Up and Sign-In
Run the app after Firebase config files and Auth providers are ready:
yarn start
yarn ios
# or
yarn android
Create a test account from the app. Then open Firebase Console > Authentication > Users and confirm that the user appears.
Troubleshooting
| Problem | Check |
|---|---|
| Sign-up says the provider is disabled | Enable that provider in Firebase Console. |
| Login works in demo but not your project | Replace both native Firebase config files and rebuild the app. |
| Phone auth does not send SMS | Enable Phone auth and add iOS/Android verification setup. |
| Apple login is rejected on iOS | Confirm Apple Developer capability, Firebase provider, and Xcode capability. |
| Facebook login returns a credential error | Confirm the Meta app id/secret, bundle id, package name, and key hashes. |