From the course: Node: Authentication

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Set up and understand the ToDo list sample application

Set up and understand the ToDo list sample application

From the course: Node: Authentication

Set up and understand the ToDo list sample application

- [Instructor] For the rest of this chapter, we will take a look at how to secure single-page applications, as they are very common these days and have specific requirements when it comes to authentication. The single-page application we will be working with is a todolist implemented with Vue.js This application is fully implemented, so there is no need to understand Vue.js. All you need to know is that it utilizes an API provided by the Playground app. Also, please keep in mind that this single-page application supports multitenancy. This means that a registered user can maintain their individual todolist, in contrast to all users getting just access to a shared list. Let's look at the API routes on the Playground app the todolist app relies on. So first we have the login route. So it's a POST request to api/login and their essential credentials too, and then I expect the API to log me in in some way, and there…

Contents