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