Skip to content

muhib-dev/mern-jwt-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages