Channel | Publish Date | Thumbnail & View Count | Download Video |
---|---|---|---|
Publish Date not found | 0 Views |
#flutterWeb #bedevelopers #PhoneAuthenticationFirebase
#Beginner's_Guide_to_Phone_Authentication_in_Flutter_with_Firebase
#How to send OTP from Firebase
Hi guys! In this video we will discuss… How to send OTP to user's phone number to authenticate him/her or create an account using the phone number.
What do you get in this video?
——————————————————————————–
00:00 – Introduction to the video.
00:25 – Discuss how to send and verify OTP and then create a user in the Firebase console.
02:27 – Creating a function to send OTP to the phone number.
03:21 – Creating an instance of the Firebase Auth class.
03:52 – Calling singInWithPhoneNumber using Firebase Auth instance.
04:34 – Deploying RecaptchaVerifier to check if the OTP was sent successfully or if it causes an error and then overrides the onError and onSucess functions.
07:30 – Checking the response of the OTP sent or failed. Based on this we send the error or value to the future.
09:40 – Creating another function that verifies the OTP sent by Firebase and entered by the user. Account creation also happens within this function.
14:17 – When we implement the function to send OTP to the FutureBuilder, based on that we will get the response of the function.
22:52 – Implemented OTP verification function in FutureBuilder to check the response of the function whether it failed or completed successfully.
28:47 – Enabling phone authentication in the Firebase console.
29:48 – Checking if it works or not.
———————————————————————————————————————————–
Plugins used: –
Firebase Authentication – https://pub.dev/packages/firebase_auth
Firebase core – https://pub.dev/packages/firebase_core
Source code –
https://github.com/vagish1/FirebaseFlutterCourse
Subscribe to this channel.
Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.