From the course: React: Creating and Hosting a Full-Stack Site
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Adding Firebase Auth to Node.js - React.js Tutorial
From the course: React: Creating and Hosting a Full-Stack Site
Adding Firebase Auth to Node.js
- [Instructor] Alright, so as I mentioned, there's a few adjustments that we're going to have to make to our front end now that we have access to the user and whether or not they're logged in. But before we do that, we're actually going to take a slight detour and go to the backend because we're going to need to add Firebase off there as well. Now, the reason we need to do this is because even if we put certain protective measures in place on the front end, the endpoints on our server aren't safe unless we actually put logic in the server that will verify that a logged-in user is making that request, right? So in other words, if we didn't add any protection to our server endpoints, a user could just use something like Postman to get around any protective measures we put in place on the front end. So what we're going to do here is we're going to open up our backend, and here we go, we'll just go into the backend directory. And we're going to need to open up our server file here. And in…
Contents
-
-
-
-
-
-
-
(Locked)
Why Firebase Auth?2m 9s
-
(Locked)
Creating a Firebase project1m 43s
-
(Locked)
Adding Firebase Auth to React6m 7s
-
(Locked)
Build a login form8m 51s
-
(Locked)
Build a create account page7m 23s
-
(Locked)
Making interface adjustments for authenticated users6m 8s
-
(Locked)
Creating a custom auth hook9m 3s
-
(Locked)
Adding Firebase Auth to Node.js6m 35s
-
(Locked)
Protecting endpoints using auth tokens4m 33s
-
(Locked)
Protecting the upvote and comment endpoints5m 7s
-
(Locked)
Making requests with auth tokens7m 7s
-
(Locked)
-
-