Authentication with Next Auth and Next.js 13

❤️Please Support me by subscribing to my channel 👉🏻

The new version of this video:
In this video I will show you how we can use next-auth.js with next js version 13.

Subscribe to my channel

GitHub repo (don’t forget to give it a ⭐):

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:

my discord server:

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