У нас вы можете посмотреть бесплатно Advanced authentication in NextJs using middleware & server actions или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this video, we will implement authentication using middleware in NextJs 13 and the NextAuth package. We'll also update the session on the client side using Server Actions and the new `update` function from NextAuth. UPDATE: A safe way to pass the user data to the form action is to use the session data instead of the hidden form field. I've updated the source code in Github to reflect this. 👉🏼 The Ultimate NextJs Course 🔗 https://www.hamedbahram.io/courses/ne... 👉🏼 Source code (check the `advanced` branch) 🔗 https://github.com/HamedBahram/next-a... 👉🏼 NextAuth – updating the session 🔗 https://next-auth.js.org/getting-star... 👉🏼 NextAuth – using middleware 🔗 https://next-auth.js.org/configuratio... 👉🏼 NextJs documentation – middleware 🔗 https://nextjs.org/docs/app/building-... Chapters 0:00 Intro 1:20 Project outline 3:40 Adding a database adapter 6:00 Profile page 9:00 Updating the session 13:50 Server actions 19:08 Using a middleware 25:34 Outro