Firebase sign up and sign in method

86 views
Skip to first unread message

Adrián Varga

unread,
Feb 1, 2021, 7:18:10 AM2/1/21
to Firebase Google Group

Hi,

I would like to enquire about the FireBase Phone Auth. 

I read that through this process, the users can register and log in with a single-use code, but what is the log-in process later, if they signed out (or if they want to sign in other devices)?

I would like to create platform where a user can register with their email and password, and add an SMS confirmation to it, where the registration is only successful if they type in the code sent to them via text message.

After the successful initial registration, they won't need an SMS code to log in anymore, they can log in with their email and password any devices.

Technically I'm just want a secondary security system, to verify the email and password with a phone number. So I don't want only SMS sign up and login, I want email password signup with phone number and SMS.

This is necessary, since according to the T&Cs, one user can only have one account, so a  phone number and verification code would significantly decrease the risks of someone creating multiple accounts. But after successful registering, they can always sign in every devices with email/password (without phone number or SIM card).

Is this possible to do?

Sam Stern

unread,
Feb 1, 2021, 7:22:21 AM2/1/21
to Firebase Google Group
Hi Adrian,

What you're talking about is just "phone number verification" but not "phone number authentication".  You want to attach a verified phone number to a user's email account. Firebase does not really support this flow, with Phone Auth the phone number would be the primary ID and users could sign in on a new device with that phone number.

You may be able to wire up a custom system to do what you're looking for by using account linking, but it will definitely be complex!  Instead it's probably better to use a service like Twilio or another SMS platform to do phone number verification outside of Firebase.

- Sam 

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/18253d46-e456-4a6f-8070-ace5d265781bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages