Skip to content

Ariyan-Jadhav/nextjs-auth

Repository files navigation

🔐 OTP-Based Authentication System

This is a full-stack authentication system built with Next.js, MongoDB, TailwindCSS, and Nodemailer. It features OTP-based email verification, password hashing using bcryptjs, and secure session management via JWT.


Preview

|Login Page| |

✨ Features

  • ✅ User Registration with OTP Email Verification
  • 🔒 Secure Login with OTP and Password Check
  • 🔐 Password Hashing using bcryptjs
  • 🧪 Email-based OTPs using nodemailer
  • 🪙 JWT Token Authentication (stored in HTTP-only cookies)
  • 🌐 MongoDB for user management
  • 💅 TailwindCSS for UI styling

⚙️ Tech Stack


About

Authentication flow using one-time passwords (OTP) sent via email, secure password hashing with bcrypt, and JSON Web Token (JWT) for session handling. Tech stack: Next.js, MongoDB, TailwindCSS.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors