From the course: Building APIs with LoopBack
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Working with users via Explorer - Node.js Tutorial
From the course: Building APIs with LoopBack
Working with users via Explorer
- [Instructor] Alright, so we've locked down access to our cat model so that only authenticated users can create them, but how do we actually work with users. As you've already seen in the explorer, LoopBack has a default user model that handles nearly all of this work for us. It handles account creation, logging in, password resets, and more. Now, normally, you want to extend the user model. If you remember, LoopBack supports the basic inheritance, so I can define a model that extends the properties and methods of another. In our simple examples, though, we can get by with just using the default user model. Typically, for a user system, you design a nice front end, with the registration and log in form, the same for the password reset system. But LoopBack's user model has APIs for all of that, which means we can use the explorer itself to not only create our user and log in, but then test calls that are locked down security wise. Let's take a look. I'm on the explorer with the user…
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.