This project implements phone number authentication using OTP (One-Time Password) with Firebase in a React Native application. It leverages Firebase Authentication and the expo-firebase-recaptcha
package to handle verification.
- Send OTP to a phone number.
- Verify the OTP and sign in the user using Firebase.
- Simple and clean UI with React Native.
-
Firebase Setup:
- Create a Firebase project from the Firebase Console.
- Add the Android/iOS app to the Firebase project and download the
google-services.json
orGoogleService-Info.plist
file. - Enable Phone Authentication from the Firebase Authentication section.
-
Billing Plan:
- Firebase Phone Authentication requires upgrading to the Blaze Plan (pay-as-you-go). The free Spark plan does not support phone authentication.
- You can upgrade your Firebase project from the Firebase Console under the Billing section.
- Node.js and npm installed on your machine.
- Expo CLI installed. You can install it by running:
npm install -g expo-cli