Auth · ![Author Salimi](https://camo.githubusercontent.com/790177ec6634d7b7bbd90f2bd2cf59b9a438aa47e293324e8412d3c9bd4b477c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d53616c696d692d253343253345)
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.
- Light / dark / system mode
- PostgreSQL, Neon & Prisma for database
- NextAuth.js v5 or Auth.js for authentication
- React Email for email templating
- Resend for sending email
- Using Next.js 14 Server Action
- Next.js 14
- Shadcn/ui
- NextAuth.js v5 / Auth.js
- Tailwind CSS
- TypeScript
- PostgreSQL
- Neon
- Prisma
- React Email
- Resend
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