Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I send OTP Code to both email and Phone number using firebase at the time of user registration and Sign IN

I am developing an social media and I want to implement a passwordless signup process using only OTP, Also I want to know what should be validation for both phone and email address at the time! Please Help

like image 974
AL OK Avatar asked Jan 29 '26 09:01

AL OK


1 Answers

This is not possible. Firebase Auth provides the ability to sign in with a phone number and the ability to sign in with email link. Those are separate providers. You can trigger them at the same time but they will result with 2 accounts created. Unless, you start with one and then link the other. For example you can sign up with email link and then add a phone number to the account created. Afterwards the user can sign in with either mechanism.

like image 135
bojeil Avatar answered Jan 31 '26 08:01

bojeil