Phone Authentication Using Firebase In Flutter
4 min readSep 10, 2021
You’ll get to know about how to use phone authentication using firebase in flutter. I’ll show you how to do phone auth in flutter project like whatsapp, viber and imo. If you are not registered then it will redirect to the register screen and if you are a registered user then it will redirect to homepage.
Here we go:
Firebase setup
- Create firebase project for your app →click
- Register your flutter app in the firebase project you’ve created above.
- Add SHA-1 key in the registration process of firebase project.
(Generate SHA-1 Key → click) - Download googleservice.json file.
- Follow the steps mentioned there in the firebase and do accordingly.
- Navigate to the Authentication section in the firebase console.
- Enable phone provider
- Navigate to Firebase Database
- Select Production Mode and choose the location and create database.
- Go to rules and replace false with true and publish the changes.