From the course: Firebase Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Sign in and sign out - Google Cloud Tutorial
From the course: Firebase Essential Training
Sign in and sign out
- [Instructor] So now we've got our protected routes set up just the way we want them to. And what this means is that if we run our app by running NPM start in a terminal. All our users can do unless they're signed in, is go to the sign in and create accounts pages. And if they try to go to say the home route, it'll redirect them automatically back to the sign in page. So that's a really handy thing to have set up. What we're going to do now is actually allow our users to sign in and sign out. And to do this we'll be adding the sign in and sign out wrapper functions we created previously to their corresponding components in this application. The first thing we're going to do here is add sign in functionality to our sign in form component. So let's open up our sign in form component here that should be inside off, and sign in form. And what we're going to do is if we scroll down to the body of the component, we see that we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
What is Firebase Auth?2m 41s
-
(Locked)
Set up the sign-in methods2m 58s
-
(Locked)
Important Firebase Auth functions4m 32s
-
(Locked)
Avoid vendor lock-in3m 24s
-
(Locked)
Create a sign-in wrapper function4m 57s
-
(Locked)
Create other auth wrapper functions4m 40s
-
(Locked)
Add private routes8m 49s
-
(Locked)
Sign in and sign out4m 48s
-
(Locked)
Authentication pricing1m 9s
-
-
-
-
-
-
-
-