Do AI agents pick Auth.js (NextAuth)?
How often agents choose Auth.js (NextAuth) when a developer needs authentication — measured across Claude, GPT, Gemini.
95% CI 8%–19%
When developers ask an AI agent for auth, Auth.js (NextAuth) is picked 13% of the time — ranking #2 of 6 measured across Claude, GPT, Gemini.
8.4M package downloads / week
0 docs in FineWeb · 76 URLs in Common Crawl
33.0M installs / month ▲ 13% MoM
Get the full report
The per-model and per-surface breakdown for Auth.js (NextAuth) — where it wins, where it loses, and to whom — plus an alert when the Pick Rate moves.
About Auth.js (NextAuth)
Authentication library built for Next.js applications.
Auth.js (formerly NextAuth) handles user authentication in Next.js apps, supporting OAuth providers (like Google, GitHub, and Twitter), email/passwordless login, and credentials-based auth. It manages sessions, JWTs, and database adapters so developers don't have to build auth flows from scratch. It targets Next.js developers who need a flexible, self-hostable auth solution without depending on a third-party service.
Where to start
Install the package and create an API route (or Route Handler in the App Router) to configure your chosen providers and session strategy. The official Auth.js documentation walks through setup for both the Pages Router and App Router.
The rest of the Authentication ranking
| 1 | Clerk | 15% |
| 3 | Auth0 | 7% |
| 4 | WorkOS | 3% |
| 5 | Firebase Auth | 2% |
| 6 | Supabase Auth | 0% |