Authentication with Next Auth and Next.js 13

❤️Please Support me by subscribing to my channel 👉🏻https://www.youtube.com/@sakuradev?sub_confirmation=1

The new version of this video: https://youtu.be/khNwrFJ-Xqs
In this video I will show you how we can use next-auth.js with next js version 13.

Subscribe to my channel https://www.youtube.com/channel/UCTKSxERKbrpQOTa7QjDPjZg?sub_confirmation=1

GitHub repo (don’t forget to give it a ⭐): https://github.com/vahid-nejad/next-auth-nextjs13

the backend project is a NestJs project. if you want me to create a video on how we manage the Authentication Backend side, please let me know in the comments. Thanks

Backend repo: https://github.com/vahid-nejad/auth_backend

my discord server: https://discord.gg/BWN3yUqu

Chapters:
0:00 Intro
1:45 Setting up next-auth with next.js 13
4:10 Creating next-auth config file
5:30 Adding credential provider
7:29 Authorize function
11:52 Session provider
13:55 Sign In functionality
20:04 Protect pages with next auth middleware
24:09 Recap