Chapter 7. Building Authentication in Node.js

In the previous chapter, you automated the building of the application with Gulp. You’ll shift gears here and move on to authentication. In this chapter, you will be building a new, demo authentication app in Node.js outside of the social app you’ve been building. In the next chapter, you will integrate this authentication strategy into your social app.

Introducing Token Authentication

In any application, you need to authenticate the user making the requests to the server. There are two ways to do this with an Angular application:

Image Cookie-based authentication: This works like a traditional web application. ...

Get Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.