Skip to content

MERN Stack CRUD operation. Using best practices. Uses jwt-token for authentication.JWT (JSON Web Token) is a commonly used method for authentication and authorization in web applications, including those built with React. User Registration/Authentication: When a user registers or logs in to the application, their credentials are sent to the server.

Notifications You must be signed in to change notification settings

aozoragh/jwt-token-react-nodejs-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” 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


About

MERN Stack CRUD operation. Using best practices. Uses jwt-token for authentication.JWT (JSON Web Token) is a commonly used method for authentication and authorization in web applications, including those built with React. User Registration/Authentication: When a user registers or logs in to the application, their credentials are sent to the server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published