Uploaded April 2023 | Updated December 2026, 3 hours ago
This video will look at authentication in NextJs 13 using the Next-Auth package and the new update that supports the new route handlers.
β‘οΈ The Ultimate NextJs Course
π hamedbahram.io/courses/nextjs
β‘οΈ Source code
π github.com/HamedBahram/next-auth-demo
β‘οΈ Next-Auth Docs
π next-auth.js.org/getting-started/example
Chapters:
0:00 Intro
0:30 Project setup
1:30 Install next-auth
03:25 Initialize next-auth config
08:40 Add session provider
12:05 Protecting client-side pages
18:35 Protecting server-rendered pages
22:40 Protecting API routes
24:26 Outro
This video will look at authentication in NextJs 13 using the Next-Auth package and the new update that supports the new route handlers.
β‘οΈ The Ultimate NextJs Course
π hamedbahram.io/courses/nextjs
β‘οΈ Source code
π github.com/HamedBahram/next-auth-demo
β‘οΈ Next-Auth Docs
π next-auth.js.org/getting-started/example
Chapters:
0:00 Intro
0:30 Project setup
1:30 Install next-auth
03:25 Initialize next-auth config
08:40 Add session provider
12:05 Protecting client-side pages
18:35 Protecting server-rendered pages
22:40 Protecting API routes
24:26 Outro










