AuthKit Pro is a production-focused authentication starter toolkit for Next.js App Router that dramatically reduces setup time for authentication systems.
npx authkit-pro initIt provides:
- Preconfigured OAuth providers
- Database integration
- Middleware protection
- Login UI scaffolding
- Type-safe developer experience
Designed for developers who want authentication working in minutes — not hours.
- Google OAuth
- GitHub OAuth
- Credentials (Email / Password)
- PostgreSQL (v1 default)
- MongoDB (coming soon)
- Login Page
- Profile Component
- Sign Out Button
- Optional route middleware protection
- Secure session handling
- Env auto configuration support
- Built for App Router
- Fully typed
- Modular provider system
- Easy config injection
npx authkit-pro initCreate .env.local
AUTH_SECRET=your_secret
GOOGLE_CLIENT_ID=your_id
GOOGLE_CLIENT_SECRET=your_secret
GITHUB_CLIENT_ID=your_id
GITHUB_CLIENT_SECRET=your_secret
DATABASE_URL=postgres_connection_string// app/api/auth/[...nextauth]/route.ts
import NextAuth from "next-auth";
import { authOptions } from "@/lib/auth";
const handler = NextAuth(authOptions);
export { handler as GET, handler as POST };Handles logout flow automatically.
(Add your UI screenshots here)
/screenshots/login.png
/screenshots/profile.png
- MongoDB Adapter
- More OAuth Providers
- CLI Auth Generator
- Theme Customization
- Role-Based Access Control
- Multi-Tenant Support
Contributions are welcome!
git clone repo
npm install
npm run dev1️⃣ Fork 2️⃣ Create branch 3️⃣ Open PR
MIT License
Muhammad Rabbi
Full-Stack Developer focused on frontend systems and developer tooling.
- Building UI systems
- Experimenting with AI tooling
- Creating production-ready dev utilities
If you find this project useful:
- Star the repo
- Share with developers
- Contribute ideas
It helps the project grow ❤️