From the course: Angular: Creating and Hosting a Full-Stack Site

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Load user listings with Auth

Load user listings with Auth

From the course: Angular: Creating and Hosting a Full-Stack Site

Start my 1-month free trial

Load user listings with Auth

- [Instructor] So now that we've allowed users to sign in and out, it's time to start incorporating Firebase Auth into some of the other parts of our app. Recall that earlier in the course, there were several places in both our front end and back end, where we sort of faked a user by hard coding a user ID. The get listings for user method and our Listing Service was a good example of this, where we simply hard coded one two three four five for the requests that our front end made to our back end. But now that our users are actually logged in, the currently logged in user will have a unique user ID that Firebase Auth automatically assigns to them. So let's take a look at how we can use this ID to make our app actually load the correct listings for a user. Now, this will involve making changes to both the front end and back end. But we're going to start with the front end here. So inside our listings dot service file,…

Contents