Code - https://github.com/100xdevs-cohort-3/week-6-auth-app

Today we want to understand the most basic way to do authentication in a Node.js app.

What is authentication?

The process of letting users sign in / sign out of your website. Making sure your routes are protected and users can only get back their own data and not the data from a different user

Screenshot 2024-09-07 at 7.03.59 PM.png

What we’ll learn

  1. Auth basics
  2. JWT (JSON Web tokens)
  3. Authorization header
  4. Creating your own auth middleware
  5. localstorage