Chapter 10

Registration and Authentication

IN THIS CHAPTER

Bullet Starting the project by making and configuring the directory

Bullet Creating the basic structure for the app

Bullet Laying out and testing the routes

Bullet Using Mongoose

Bullet Implementing user registration and authentication

Bullet Using access tokens

Bullet Implementing user login and accessing secure routes

“If you're going to make connections which are innovative … you have to not have the same bag of experiences as everyone else does.”

— STEVE JOBS

Most apps with an API server running in Node.js and a client running in a browser need certain functionality to be complete. On the server side, the client should have a way to authenticate itself, and the client should be able to work with the server's data.

On the client side, users must have a way to interact ...

Get JavaScript All-in-One For Dummies 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.