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

Sign in and sign out - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

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…

Contents