This is a complete authentication example app built with Next.js 14 and Auth.js using the latest server actions. Sign in & sign up can use credentials or oauth providers with Google or GitHub. Authentication includes password reset, email verification, two factor authentication & role gate.
Open the .env.example and fill in your Prisma, Auth & Resend Configurations then save it as .env the run the following command:
npm install
npx prisma generate
npx prisma db push
npm run dev
Hosted privately on personal DigitalOcean Droplet. Click here to visit.
Direct link: https://auth.salimi.my