Next.js 15 Authentication Complete Guide - Best Practices and Pitfalls

Next.js 15 Authentication Complete Guide - Best Practices and Pitfalls

ByteGrad via YouTube Direct link

35:09 Best practice: Data Access Layer DAL

18 of 18

18 of 18

35:09 Best practice: Data Access Layer DAL

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Next.js 15 Authentication Complete Guide - Best Practices and Pitfalls

Automatically move to the next video in the Classroom when playback concludes

  1. 1 00:00 What should be protected in Next.js?
  2. 2 03:48 Cookies and tokens JWT
  3. 3 04:27 Auth solution: External Kinde vs Do It Yourself?
  4. 4 06:18 Kinde setup
  5. 5 07:56 Protect routes server components
  6. 6 10:09 Logout link
  7. 7 11:17 Login link & Register link
  8. 8 11:52 Layout vs Page where to do auth check?
  9. 9 14:05 Middleware vs Page where to do auth check?
  10. 10 17:49 Protect server actions
  11. 11 20:25 Pitfall: using server action on unprotected route
  12. 12 21:50 Protect route handlers
  13. 13 22:08 Show user info in header: client-side auth avatar + email in header
  14. 14 23:28 Pitfall: static & dynamic rendering IMPORTANT!
  15. 15 27:44 Connecting external auth solution with your own database
  16. 16 29:45 Pitfall: forgetting authorization
  17. 17 32:14 Roles & Permissions admin role
  18. 18 35:09 Best practice: Data Access Layer DAL

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.