Authentication in Next.js with NextAuth.js v5

The NextAuth v5 mental model, OAuth before passwords, bcrypt done right, JWT versus database sessions, and the security work the library leaves to you.