Skip to content

A tutorial app to show phone authentication in flutter firebase

Notifications You must be signed in to change notification settings

Snehasis4321/phone_auth_firebase_tutorial

Repository files navigation

Phone authentication tutorial flutter firebase

the repository contains the full code to add phone authentication using firebase in flutter

🛠 Update

  • added the feature to automatically read and auto-fill otp please watch the another part for the tutorial

🚀 Functionality

  • Sent OTP to the phone number
  • Verify the OTP received
  • Automatically read OTP SMS and auto-fill OTP code

PHONE AUTH (1)(1)

Link Here

READ-SMS10 watch this video here.

ℹ Important for phone auth

To view sha1 / sha256 key for phone auth use this command to

First visit the user folder of the OS Like C:/YouUserName for Windows or /usr for Linux there you will find a folder named .android folder and there will be a file named debug.keystore

  • if the file is there then it means you already have a sha1/sha256 key , no need to generate
  • if not then you need to generate a new debug.keystore file

💻 Command to view your existing sha1 and sha256 key

keytool -list -v -keystore debug.keystore -alias androiddebugkey

after running this command this will ask for a password the default password is android


💻 Command to create a new key store file

Run this to create first then run above command only if you don't have an existing debug.keystore or you have forgotten the password of the previous one.

keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000

make sure to run the command inside .android folder of your user folder of os.

About

A tutorial app to show phone authentication in flutter firebase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published