O'Reilly logo

Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js by Jeff Dickey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required