Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to allow email id to receive OTP in firebase for authentication

I am developing an app wherein the users use either email and phone to perform registration.

Users can enter their email or phone for log in, I want the same OTP to be sent to mobile and email simultaneously. Please Help!

like image 983
Alok Avatar asked Jun 21 '18 06:06

Alok


People also ask

Can we send OTP to email using Firebase?

You can use Firebase Authentication to sign in a user by sending them an email containing a link, which they can click to sign in. In the process, the user's email address is also verified.

Is Firebase OTP verification free?

From the use of firebase OTP verification using a phone number is FREE.


Video Answer


1 Answers

If you want to work only with Firebase Authentication, then there is not any suitable solution that meets your requirement.

Some limitations you can find with Firebase are Firebase Authentication Limits and Phone number sign-in limits.

However the alternative solution is using third-party SMS gateway. through with you can send OTP to phone number as well as to email also simultaneously.

like image 197
Rumit Patel Avatar answered Oct 08 '22 19:10

Rumit Patel