nextauthjs/next-auth
Authentication for the Web.
What it is
Auth.js Authentication for the Web. Open Source. Full Stack. Own Your Data. Auth.js is a set of open-source packages that are built on standard Web APIs for authentication in modern applications with any framework on any platform in any JS runtime. Auth js is now part of Better Auth. We recommend new projects to start with Better Auth unless there are some very specific feature gaps (most notably stateless session management without a database).
When to use it
Reach for next-auth when you need sign-in, users, permissions, subscriptions or getting paid — it's written in TypeScript and fits stacks tagged auth, authentication, csrf, jwt.