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.git
Go to the project directory
cd JWT-Authentication-Nextjs
Install dependencies
npm install
Setup Environment Vaiables
JWT_SECRET=YOUR_KEY
MONGO_URI = YOUR-MONGO-URL
Start the server
npm run dev
The 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