This repository hosts the source code for a user authentication platform built with Next.js, MongoDB, JWT, Bcrypt and Tailwind CSS. The application features user registration and login, utilizing JWT for secure authentication, along with a responsive UI built with Shadcn components.
- Live Preview: https://jwt-authentication-nextjs.vercel.app/
- User registration and login with JWT authentication
- Responsive design with Tailwind CSS
- Beautifully styled forms and user interface using Shadcn components
- Seamless API calls made using Next.js server actions
- Easy integration with MongoDB for data management
- Store JWT Token in Cookie
- Login Page
- Signup Page
- Home Page
Clone the project
https://github.com/Mshandev/JWT-Authentication-Nextjs.gitGo to the project directory
cd JWT-Authentication-NextjsInstall dependencies
npm installSetup Environment Vaiables
JWT_SECRET=YOUR_KEY
MONGO_URI = YOUR-MONGO-URLStart the server
npm run devThe application is deployed on Vercel.
Contributions are always welcome! Just raise an issue, and we will discuss it.
If you have any feedback, please reach out to me here


