LAURENCE MORONEY: Firebase now supports phone number
authentication, in addition to logging
in with email and password or identity providers,
like Facebook and Google.
A phone number is validated using a one time SMS message
and Firebase provides all of the infrastructure to handle this.
I'm Laurence Moroney and in this Firecast,
I'll show you how this works.
Typically, when using Firebase Auth,
you'll provide a number of sign-in methods,
such as signing up or signing in with Google, Facebook,
or email.
Well, now, there's a new option, as you can see here,
Sign-in with Phone.
To be able to do this, you'll first
need to enter your phone number, which you
can do from a standard dialog.
When doing it from the web, you'll
also be able to validate this with a reCAPTCHA.
Once you have a valid phone number, you can verify it.
Firebase will send an SMS to your device containing a code.
You simply enter this code and it
will be verified with Firebase.
If it's a correct code, you'll be good to go.
Otherwise, you'll have to re-enter or resend.
Once a user is signed up with phone auth,
you'll also see them in the Firebase console.
It's a pretty simple, lightweight process.
It's also easy to build it using the Open Source Firebase UI
libraries.
There's a link to them in the description below.
Also, check out the Firebase developer site
for more information on building for Firebase Auth.
And don't forget to subscribe to the Firebase channel
on YouTube for more videos, including
more on how to use phone auth on iOS, Android, and the web.
I'll see you there.