Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 984 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 984 Bytes

MERN stack authentication & authorization (production ready)

Authentication & authorization with JWT access token, refresh token

Authentication Features

  • Role based authorization
  • Storing refresh token HttpOnly cookie and DB
  • Storing access tokens in memory React State (not localStorage)
  • Refresh token rotation and reuse detection
  • If reuse detected remove all refresh token from DB

Front-End

  • React
  • MUI styles
  • Zod schema validation
  • JSON Web Tokens (JWT)
  • Axios Interceptor

Back-End

  • Express
  • MongoDB (mongoose ODM)
  • Zod schema validation
  • JSON Web Tokens (JWT)
  • Custom error handler
  • Error and request logs generate and store in .txt file
  • and some utils library (express-rate-limit, xss-clean, helmet, cors etc..)

login signup