filmov
tv
Next Auth - JWT & Session Callback & How to Update User Session

Показать описание
In this video, I go over how to use the asynchronous callbacks of the JWT function and session function. This will allow you to use the JSON Web Token for your session data.
Also, I go over the update method provided by the useSession Hook. This allows you to update the session object.
Private 1 on 1 Help 👇
Join my FREE Discord to talk and network about web development! 👇
Time Stamps
0:00 Intro
1:18 getServerSession and UseSession Overview
4:24 Explanation of how the callbacks work
5:49 Creating a custom property inside of Register Endpoint
10:47 Create the JWT and Session Callbacks
21:48 The Update() Method
27:52 Update the user in database
30:42 Outro
Also, I go over the update method provided by the useSession Hook. This allows you to update the session object.
Private 1 on 1 Help 👇
Join my FREE Discord to talk and network about web development! 👇
Time Stamps
0:00 Intro
1:18 getServerSession and UseSession Overview
4:24 Explanation of how the callbacks work
5:49 Creating a custom property inside of Register Endpoint
10:47 Create the JWT and Session Callbacks
21:48 The Update() Method
27:52 Update the user in database
30:42 Outro
How to Manage Backend JWT Access Tokens in Next Auth and Next.js 13
Next.js App Router Authentication (Sessions, Cookies, JWTs)
Next Auth - JWT & Session Callback & How to Update User Session
Session vs Token Authentication in 100 Seconds
Securely using JWT on the Edge: Authentication in NextJS Middleware!
Next-Auth on App Router - Solid Auth, Super Fast
Next Auth V5 - Advanced Guide (2024)
Next.js: Authentication (Best Practices for Server Components, Actions, Middleware)
Next-Auth Login Authentication Tutorial with Next.js App Directory
JWT + Next.js Authentication Demo: Master Next.js Tutorial #17
Next.js 13 jwt authentication protected routes httpOnly cookie with App Directory
Next Auth Sign in With Credentials
Refresh Token with next-auth and Axios Interceptors in Next.js 13 Authentication
Next.js Authentication - AuthJS / NextAuth for Role-Based Security
Authentication in React with JWTs, Access & Refresh Tokens (Complete Tutorial)
Full Stack Authentication With Next.JS | Next Auth | Nest.JS
NextJS Authentication with Server Actions - Learn to build from scratch!
Next.js 14 Authentication Tutorial (Super EASY!)
Next.js Auth | This is the Easiest Way To Build Auth with Cookie Sessions
Auth0 in 100 Seconds // And beyond with a Next.js Authentication Tutorial
Oh, Auth Doesn't Have to Suck?
Trying to add refresh token logic in next-auth
Master NextAuth v5: Next.js Authentication Made Easy
NextJS 13. Аутентификация и приватные роуты
Комментарии