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

Опубликовано: 12 Март 2026
на канале: Sakura Dev
103,375
1.9k

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    / @sakuradev  

Detailed video about next-auth:    • Authentication with Next Auth and Next.js 13  
Role-Based Authorization with next-auth:    • Role Based Authorization with Next-Auth an...  

GitHub Repo: https://github.com/vahid-nejad/next-a...

my discord server:   / discord  

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