У нас вы можете посмотреть бесплатно Sessions in Node #4 | Authentication in Node.js with Express and sessions | refactoring routes или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
🔥More exclusive content: https://productioncoder.com/you-decid... Twitter: / _jgoebel Blog: https://productioncoder.com Code: https://github.com/productioncoder/ex... Learn how to build a cookie and session-based authentication system with the Node express.js framework and the Redis in memory store. This is the first part 4 of our series in which we will start to refactor our code so it is easier to maintain. 00:00 - refactoring our cookie-based authentication system 01:04 - move REST endpoints to its own express router 03:02 - wiring up Express router in main file 03:35 - moving Node.js authentication middleware into its own file 04:35 - wiring up authentication middleware 05:47 - testing our refactored code 06:39 - testing cookie-based session implementation with Postman 07:17 - renaming cookie name to prevent X-powered by attacks 08:20 - regression test authentication system