Thrilled to announce GoBetterAuth!
This is an attempt at building a comprehensive, framework-agnostic authentication and authorization library for Go designed to bring production-ready security and comprehensive auth to Go APIs. Stop reinventing the wheel and start building better APIs, faster.
This library is focused on delivering a secure, flexible, and feature-rich foundation right out of the box:
Key Highlights:
-
Security First: Features like argon2 password hashing, CSRF protection, secure cookies, and per-endpoint Rate Limiting are built-in.
-
Full-Spectrum Auth: Supports traditional Email & Password flows alongside Social OAuth Providers (Google, GitHub, Discord, Generic OAuth etc.)
-
Clean Architecture: Built on Go Clean Architecture principles (domain, usecase, …
Thrilled to announce GoBetterAuth!
This is an attempt at building a comprehensive, framework-agnostic authentication and authorization library for Go designed to bring production-ready security and comprehensive auth to Go APIs. Stop reinventing the wheel and start building better APIs, faster.
This library is focused on delivering a secure, flexible, and feature-rich foundation right out of the box:
Key Highlights:
-
Security First: Features like argon2 password hashing, CSRF protection, secure cookies, and per-endpoint Rate Limiting are built-in.
-
Full-Spectrum Auth: Supports traditional Email & Password flows alongside Social OAuth Providers (Google, GitHub, Discord, Generic OAuth etc.)
-
Clean Architecture: Built on Go Clean Architecture principles (domain, usecase, repository)
-
Extensible & Flexible: Features a powerful Plugin System for custom logic and supports both SQLite and PostgreSQL with a CLI and API for migrations.
-
Session Management: Robust Session Handling with automatic Token Refresh Flow, password reset, and optional email verification.
NOTE: it’s currently a work in progress, and it’s ready for a wider audience to start exploring. We are actively seeking feedback and contributions to make it truly the better Go auth solution.
Check out the repo here: https://github.com/GoBetterAuth/go-better-auth
Feel free to try it out and contribute too!