Fireship · @fireship
Passwordless Authentication with Firebase
Uploaded March 23, 2018 · Length 7:23
Summary
build passwordless authentication with firebase, using email link authentication for a frictionless signup process
- firebase authentication
- passwordless login
- email link authentication
- angularfire
- firebase sdk
- angular development
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
[Music]
- 0:02
over the past few years you may have
- 0:04
noticed certain apps transitioning from
- 0:06
email pastor authentication to just
- 0:08
email link authentication and there's
- 0:11
two main benefits to doing this first
- 0:12
your users don't have to remember a
- 0:14
password and two it provides a
- 0:16
frictionless signup process that makes
- 0:18
it more likely for you to onboard new
- 0:20
users one app that does this is open
- 0:22
collective and the possibility just
- 0:24
became available to finder base
- 0:25
developers a couple days ago and I
- 0:28
wanted to send to thank you out to all
- 0:29
angularfire BassPro members because your
- 0:31
subscription allows me to donate to
- 0:33
other open-source projects through open
- 0:35
collective and I'm very grateful to be
- 0:36
able to do that in today's video we're
- 0:39
going to use firebase to build our own
- 0:40
password lists off system which will
- 0:42
take-it users email send them out an
- 0:44
email link that will authenticate them
- 0:46
into our firebase app I'm starting with
- 0:50
a brand new angular app and making sure
- 0:51
that it has a router then generating a
- 0:54
new component called password list off
- 0:56
from there you'll need a firebase
- 0:58
project with angular fire - installed
- 1:00
and if you're starting from an existing
- 1:02
project make sure to update the firebase
- 1:04
SDK to the latest version then go into
- 1:07
the firebase console for your project
- 1:09
and enable the email link method under
- 1:11
the email password settings now quickly
- 1:15
taking a look at the app module you
- 1:17
should have the angular fire module as
- 1:19
well as angular fire often here with you
- 1:21
our firebase web credentials then
- 1:23
initialize the app down here in the
- 1:25
import section from there we'll jump
- 1:28
over to the router and we'll route our
- 1:30
component to the login path what's going
- 1:33
to happen is the user will initially
- 1:34
land on this component they'll get their
- 1:36
email link and then they'll come back to
- 1:38
this component with a special off code
- 1:40
that we can use to log them in depending
- 1:42
on your requirements you may want to
- 1:44
break this down into two separate
- 1:45
components one to get the actual link
- 1:47
and then another one that they're
- 1:48
redirected to to actually sign in for
- 1:51
the sake of simplicity here we'll just
- 1:53
do everything in a single component the
- 1:56
end result should look like this the
- 1:57
user enters their email address we
- 1:59
notify them that we sent the email they


