finds.dev← search

// the find

hiteshchoudhary/nextjs-fullstack-auth

★ 648 · TypeScript · updated Jul 2024

nextjs-fullstack-auth course on youtube

A course companion repo for a YouTube tutorial on building authentication in Next.js with MongoDB and Mailtrap. Not a library or starter template you drop into a project — it's teaching material, meant to be followed alongside a video.

Covers the full auth loop (signup, email verification, login, logout, protected routes) in one small codebase, which is useful for seeing how the pieces connect. Uses Next.js App Router with route handlers rather than Pages Router, so the patterns are current. The middleware-based route protection is a reasonable real-world pattern. Small enough to read in an afternoon.

Mixes TypeScript and JavaScript in the same project — `userModel.js` is plain JS while everything else is `.ts`, which undermines the point of using TypeScript at all. No tests, no input validation library (Zod, Yup), no rate limiting on the auth endpoints — all things you'd need before putting this anywhere near production. The README is mostly a placeholder; the actual learning material lives in a YouTube video you have to track down separately. Password reset is left as an unfinished assignment, so the repo doesn't even cover the full auth surface it advertises.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →