/nextjs-14-auth-v5

Next.js Auth tutorial by Code with Antonio

Primary LanguageTypeScriptMIT LicenseMIT

Auth V5

Next Auth V5 Advanced guide

Built With

  • Major languages: TypeScript
  • Framework: Next.js
  • Libraries: Prisma, Auth.js, React

Screenshots

screenshot

Getting Started

  • cloning the repository by running git clone [https://](https://github.com/Hombre2014/nextjs-14-auth-v5-tutorial.git)
  • cd into the project directory cd nextjs-14-auth-v5-tutorial
  • Install the dependencies by running npm install or yarn install
  • Run the development server by running npm run dev or yarn dev
  • Open your browser and navigate to http://localhost:3000

Environment Variables

You will need to create a .env file in the root of the project and add the following environment variables:

DATABASE_URL=
DIRECT_URL=
AUTH_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
RESEND_API_KEY=
NEXT_PUBLIC_APP_URL="http://localhost:3000" or your production URL

Live Demo

Auth v5 demo

Deployment

Author

👤 Yuriy Chamkoriyski

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

Thanks to "Coding with Antonio" YouTube channel and AntonioErdeljac for his inspirational tutorial.

📝 License

This project is MIT licensed.