A Next.js project that demonstrates the implementation of Google, GitHub, and custom credential login using the NextAuth.js library. This app provides a seamless authentication experience with a clean and responsive user interface.
- Google, GitHub, and custom credential authentication
- Responsive design
- Clean and modern user interface
- Proper form validation
- Informative error handling
- Next.js
- NextAuth.js
- React
- Mongo DB
- Tailwind CSS
- Clone the repository
git clone https://github.com/Ritavdas/NextJS-Auth.git
- Change the directory
cd NextJS-Auth
- Install the dependencies
npm install
- Rename
.env.example
to.env.local
and set up the environment variables
NEXTAUTH_URL=http://localhost:3000
MONGODB_URI=your_mongodb_uri
GOOGLE_ID=your_google_client_id
GOOGLE_SECRET=your_google_client_secret
GITHUB_ID=your_github_client_id
GITHUB_SECRET=your_github_client_secret
- Start the development server
npm run dev
- Open your browser and navigate to http://localhost:3000
This project is licensed under the MIT License - see the LICENSE file for details.