This is a practical Auth.js v5 implementation guide covering Google OAuth and credentials-based authentication for Next.js apps. It walks through the full setup from environment variables to middleware configuration, including proper password hashing with bcrypt and session management. The skill focuses on the App Router pattern and includes both providers configured in a single auth.ts file, which is the current v5 approach. Useful if you're migrating from v4 or starting fresh and need working examples of the authorize callback, protected routes, and custom sign-in pages. The credentials section is more complete than most guides, with actual Zod validation and database lookups instead of placeholder comments.
npx skills add https://github.com/gocallum/nextjs16-agent-skills --skill authjs-skills