Chapter 10
Registration and Authentication
IN THIS CHAPTER
Starting the project by making and configuring the directory
Creating the basic structure for the app
Laying out and testing the routes
Using Mongoose
Implementing user registration and authentication
Using access tokens
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.