Learn EDR Internals: Research & Development From The Masters
The Most Addictive Python and SQL Courses
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Explore the deprecation of Next.js 16 middleware and learn proper authentication implementation strategies in this 23-minute tutorial. Discover what not to do in proxy configurations and understand the correct approaches for handling authentication. Examine major pitfalls when implementing authentication in middleware or proxy layers, with practical demonstrations using Kinde authentication service. Learn about data access layer (DAL) patterns as an alternative approach, including when exceptions to these patterns might apply. Master the distinction between authentication handling in middleware versus page server components, and understand why certain authentication patterns can lead to security vulnerabilities in Next.js applications.
Syllabus
00:00 Intro
01:12 What NOT to do in proxy
01:57 What to do in proxy
02:54 Authentication in middleware / proxy?
04:14 Major pitfall with authentication in middleware / proxy
04:35 Add auth Kinde
06:04 Major pitfall continued
11:54 Same pitfall in page server component
12:48 Data access layer DAL
17:46 Exception 1
21:39 Exception 2
Taught by
ByteGrad