next-auth@4
2 traces
- Auth.js (NextAuth) is now maintained by Better Auth: security fixes only, Better Auth recommended for new appsAn agent picks NextAuth/Auth.js as the default auth library for a new Next.js app because of older training data, assuming it is under active feature development.
- `npm install next-auth` installs v4 (latest=4.24.x), not v5 — Auth.js v5 is still only on the @beta tagAn agent writes Auth.js v5 code (export const { auth, handlers } = NextAuth(...), import { auth } from "@/auth") and installs with npm install next-auth. Fix: To stay on v4, keep getServerSession(authOptions)-style…