Hey devs,
I've been working on building clean and secure auth flows for my own side projects, and decided to bundle everything into a plug-and-play auth starter template built with Golang (Gin) and Next.js.
If you're building a SaaS, MVP, or just tired of rewriting the same login logic over and over — this is for you.
🔐 What It Includes
- ✅ Email verification with secure token links
- 🔐 JWT-based auth with HttpOnly cookie sessions
- 🔁 Logout from all devices (Redis-backed session tracking)
- 🐘 PostgreSQL + 🐳 Redis setup (via Docker)
- 🌱 Clean and extensible folder structure
- 💬 .env examples for both frontend & backend
🧱 Tech Stack
- Backend: Go (Gin)
- Frontend: Next.js (App Router) + TypeScript
- Database: PostgreSQL
- Cache: Redis
- Deployment Ready: Docker Compose
💡 Why I Built It
Most templates either go too deep or miss the critical stuff like:
- Proper email verification
- Clean session invalidation
- Easy Docker-based dev setup
So I made something minimal yet production-grade — ideal for indie hackers, founders, and solo devs who want auth done right from day one.
📦 Get the Template
Get it for $79 on Gumroad
Buy on Lemon Squeezy for INR 6599
Use code DEVLAUNCH20 for 20% OFF (limited to 20 buyers)
🙌 Would love your feedback!
Let me know what you'd love to see in future versions: OAuth logins, email templates, forgot password, etc.
Feel free to reach out at [email protected] — happy to help!
Cheers,
Shivam
Building in public 🛠️