Urgent.News

What's breaking now, across thousands of outlets.

Tech

How HN: Go-dev-auth zero-dependency authentication library for Go

Go-dev-auth is a zero-dependency authentication library for the Go programming language. It covers a wide range of features such as email & password, social sign-on, sessions, account linking, two-factor authentication, passkeys, magic links, organizations, single sign-on (SSO), admin tooling, and API keys with JSON Web Tokens (JWT). The library is designed to be framework-agnostic, meaning it can be integrated with various HTTP frameworks like chi, echo, gorilla, or gin.

Zero external dependencies make Go-dev-auth a robust and portable option for developers looking to implement authentication in their Go applications. The library follows Semantic Versioning (SemVer) with pre-1.0 versions still allowing changes to the public API between minor releases. From v1.0 onwards, breaking changes require a major version bump.

The library has been successfully used in production on PostgreSQL, and it supports various storage backends including SQLite, PostgreSQL, and MySQL. It follows a comprehensive threat model and includes features such as rate limiting, IP resolution, trusted proxy handling, and CORS protection. Go-dev-auth also supports plugins, allowing developers to add custom functionality as needed.

Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at github.com →

More in Tech

Drizzle vs Prisma vs Kysely in 2026: TypeScript ORMs Compared

Drizzle vs Prisma vs Kysely 2026: Best TypeScript ORM Compared Choosing a TypeScript ORM in 2026 comes down to three contenders: Drizzle (the SQL-first newcomer), Prisma (the established ecosystem…

  • Drizzle is top choice for SQL-first teams with minimal runtime overhead
  • Prisma excels in developer experience and rapid prototyping
  • Kysely best for SQL purists preferring minimalistic query builder

Google Cloud Storage has the same problem as S3: Standard forever

GCP Cloud Storage has the same problem S3 has Everything goes into Standard class. It's the default. It's what people know.

  • Google Cloud Storage stores all data in Standard class by default
  • Standard class is most expensive for infrequently accessed data
  • Object Lifecycle Management and Autoclass reduce storage costs

More from Sunday 11 October →