AuthBase

Go + Next.js Authentication Template

Everything you need for secure user authentication, email verification, and session handling β€” built with Golang (Gin), Next.js, PostgreSQL, and Redis.

Get Started for $79
AuthBase Template

What's Included

βœ‰οΈ

Email Verification Flow

Complete verification system with expirable token links for secure account validation.

πŸ”

JWT-based Authentication

Secure login, signup, and session management using industry-standard JWT tokens.

🧠

Redis Integration

Efficient session storage with ability to "logout from all devices" for enhanced security.

πŸ—ƒοΈ

PostgreSQL Setup

Docker-based PostgreSQL configuration for persistent and scalable data storage.

🧱

Clean Architecture

Well-structured code organization that easily plugs into any existing architecture.

🐳

Dockerized Setup

One-command deployment with Docker, making setup and scaling effortless.

Perfect For

πŸ‘¨β€πŸ’»

Indie Hackers

Who need authentication done right (and fast) to focus on building their product.

πŸš€

Founders

Building MVPs or SaaS products who want to skip the authentication complexity.

πŸ‘©β€πŸ’»

Developers

Who want to skip boilerplate and focus on building core features that matter.

Tech Stack

πŸ”Ή

Backend

Golang + Gin

βš›οΈ

Frontend

Next.js (App Router) + TypeScript

🐘

Database

PostgreSQL (Docker)

πŸ”„

Cache

Redis (Docker)

"Built for speed, security, and simplicity. No bloat. Just clean, production-ready auth."
Get AuthBase Now

30.3 MB download β€’ One-time $69 payment

πŸ”§ Tech Stack & Version Info

Frontend

  • Framework: Next.js 15.3.1 (App Router)
  • Language: TypeScript ^5
  • React: 19.0.0
  • Styling: Tailwind CSS ^4, clsx, tailwind-merge, tw-animate-css
  • Forms & Validation: React Hook Form ^7.55.0, Zod ^3.24.3, @hookform/resolvers ^5.0.1
  • Date Utils: date-fns ^4.1.0, react-datepicker ^8.3.0, react-day-picker ^9.6.7
  • UI Components: Radix UI (Avatar, Label, Popover, Select, Slot)
  • Icons: Lucide React ^0.501.0
  • Networking: Axios ^1.8.4
  • State/Data Fetching: React Query ^5.74.4

Backend

  • Language: Go 1.24.2
  • Framework: Gin v1.10.0
  • ORM: GORM v1.25.12 with PostgreSQL driver v1.5.11
  • Auth: JWT (github.com/golang-jwt/jwt/v5)
  • Validation: go-playground/validator v10.26.0
  • Env Config: godotenv v1.5.1
  • Email: resend-go v2.17.0
  • UUID: google/uuid v1.6.0
  • Rate Limiting & Session: Redis v9.7.3

All dependencies are regularly updated to ensure security and performance.