Skip to content
s-u-r08Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication System 🔐

A secure and scalable authentication system built with modern authentication practices, including JWT-based authentication, Refresh Tokens, Token Rotation, Session Management, OTP-based authentication, and Logout from All Devices functionality.

🚀 Features

  • JWT Authentication – Secure user authentication using JSON Web Tokens.
  • Access Tokens – Short-lived access tokens for secure API authorization.
  • Refresh Tokens – Long-lived refresh tokens to maintain user sessions without requiring frequent logins.
  • Token Rotation – Refresh tokens are rotated to improve security and prevent token reuse.
  • Session Management – Manage multiple active user sessions across different devices.
  • Logout – Securely terminate the current user session.
  • Logout from All Devices – Invalidate all active sessions and log the user out from every device.
  • OTP-Based Authentication – Secure authentication and verification using One-Time Passwords.

🛠️ Tech Stack

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT (JSON Web Token)

🎯 Key Learning

Through this project, I implemented a complete authentication and authorization covering access token management, refresh token rotation, secure session handling, OTP verification, and multi-device logout functionality.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages