Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Next.js 16 Middleware DEPRECATED - Authentication in Proxy or Data Access Layer?

ByteGrad via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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

Reviews

Start your review of Next.js 16 Middleware DEPRECATED - Authentication in Proxy or Data Access Layer?

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.