A secure, developer-friendly authentication layer built with Auth.js v1, Prisma 5, and MongoDB Atlas.
- 🔐 Multiple authentication methods (Credentials, OAuth 2.1, Magic Links)
- 🛡️ Robust anti-spam protection
- 🚀 TypeScript-first development
- 📦 Monorepo architecture with pnpm workspaces
- 🐳 Docker-based development and deployment
- 🔄 CI/CD with GitHub Actions
- Node.js 18+
- pnpm 8+
- Docker and Docker Compose
- MongoDB Atlas account
- Redis instance (Upstash or self-hosted)
-
Clone the repository:
git clone https://github.com/your-org/nextify-auth.git cd nextify-auth -
Install dependencies:
pnpm install
-
Set up environment variables:
cp .env.example .env # Edit .env with your configuration -
Start the development environment:
docker compose up -d pnpm dev
/
├─ apps/ # Deployable applications
│ ├─ web/ # Next.js UI
│ ├─ auth-handler/ # Auth.js route handlers
│ └─ api/ # Fastify service
├─ packages/ # Shared packages
│ ├─ db/ # Prisma Client
│ ├─ validation/ # Zod schemas
│ ├─ ui/ # React components
│ ├─ sdk/ # Client SDK
│ └─ config/ # Shared configs
└─ ... # See docs/adr/layout-adr.md
pnpm dev- Start all services in development modepnpm build- Build all packages and applicationspnpm test- Run testspnpm lint- Run linting
MIT