How to Manage Backend JWT Access Tokens in Next Auth and Next.js 13

In this video, we’ll show you how to manage backend JWT in Next-auth and Next.js 13. We’ll cover how to store and access backend JWT tokens inside the Next-Auth session in Next.js applications.
#nextjs13 #nextauth #authentication

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

Detailed video about next-auth: https://www.youtube.com/watch?v=cDWytA0V2kI
Role-Based Authorization with next-auth: https://www.youtube.com/watch?v=xJ6efexXJ7I

GitHub Repo: https://github.com/vahid-nejad/next-auth-backend-jwt

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

0:00 Intro
0:17 What is the problem
3:25 Setting up next-auth with next.js 13
10:25 Solving the problem of missing access tokens in next auth
12:19 Auto completion and type safety for user type in next auth session
14:32 Sending the access token with HTTP request to the backend