Home Open Source Article

Better Auth 1.4 Adds Stateless Sessions, Database Join Optimizations

TL;DR

Better Auth 1.4 introduces stateless session management, 2-3x latency improvements via database joins, JWT key rotation, and OAuth 2.0 Device Authorization Grant support.

Key Points

  • Stateless session management without database requirement by omitting database config option
  • Database joins (experimental) improve 50+ endpoints by 2-3x latency; enabled via joins flag
  • JWT key rotation support enables zero-downtime key updates
  • OAuth 2.0 Device Authorization Grant (RFC 8628) for sign-in on constrained devices like Smart TVs
  • 250+ bug fixes across adapters, session management, OAuth, organization, and SSO flows
  • Breaking changes: POST /account-info → GET /account-info, request → ctx in plugin callbacks

Why It Matters

For developers building authentication systems, stateless sessions eliminate database dependencies for scaling, while 2-3x latency improvements on core endpoints directly impact user experience. JWT key rotation and RFC 8628 support expand deployment flexibility across edge computing and IoT scenarios. However, numerous breaking changes require careful migration planning.
Full release notes and changelog

Source: www.better-auth.com