Dashboard
9 / 60
DAY 9 OF 60hardDone

JWT Authentication

#jwt#auth#security#bcrypt

Your Work

Authentication is the gate. Build a full register/login flow using JWT. Protect your notes routes so only the owner can see and modify their notes. No third-party auth libraries — just jsonwebtoken and bcrypt.

  1. POST /auth/register — hash password with bcrypt, store user
  2. POST /auth/login — verify password, return JWT
  3. Protect /notes routes with a verifyToken middleware
  4. Notes are scoped to the logged-in user (userId on schema)
  5. JWT expiry: 7 days
  6. Explain in your LinkedIn post why you should never store plain passwords

ABTALKS

60-Day Challenge

12

day streak

Day 9

JWT Authentication

Your chain

6
7
8
9
10
11
12

Arjun Mehta

Full Stack Dev

abtalks.vercel.app

Day Info

TrackFull Stack Dev
Date5 Aug 2026
DifficultyHard