Lucia-auth is Deprecated: Meet the Better Alternative – Better Auth
As of 2025, Lucia-auth is deprecated, and developers are recommended to transition to Better Auth, a new TypeScript library for authentication and authorization. Better Auth offers powerful features, a growing plugin ecosystem, and compatibility with various frameworks and ORMs like Drizzle ORM and PostgreSQL. This guide shows how to set up Better Auth in a Next.js project, configure database and authentication methods, and create the necessary API routes and client instances.