Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 790 Bytes

File metadata and controls

32 lines (21 loc) · 790 Bytes

🔐 JWT Authentication with React & Node.js

A simple and secure full-stack authentication system using Node.js + Express + JWT (backend).


✅ Features

  • 🔐 JSON Web Token (JWT) based authentication
  • 🧍 User registration & login
  • 🛡️ Protected routes (frontend & backend)
  • 🔁 Token refresh (optional)
  • 💾 MongoDB for user data (via Mongoose)
  • 🧑‍💻 Clean, modular codebase for easy understanding

🧪 How It Works

  1. User signs up → Backend saves user in DB (hashed password).
  2. On login → Backend returns JWT token.
  3. Token is stored in localStorage or HTTP-only cookies.
  4. Frontend uses token to access protected routes.
  5. (Optional) Refresh token system for prolonged sessions.

📄 License

MIT © 2025 Aozora