Загрузка...

MEVN Stack User Authentication - Part 1

Welcome to our latest video where we will be building a MEVN stack authentication app with JWT token and HTTP-only cookie support. This tutorial is perfect for those looking to learn more about MEVN stack and how to implement authentication within their web applications. We'll start by covering the basics of MEVN Stack, which stands for MongoDB, Express.js, Vue.js, and Node.js. Then, we'll dive into the details of how we can use JSON Web Tokens (JWTs) and HTTP-only cookies to protect our users' data from unauthorized access. Throughout the video, you'll see step-by-step how we can build a secure authentication system using these technologies. We'll also explain the benefits of using JWTs and HTTP-only cookies in this process, including how they can help to prevent cross-site scripting attacks. By the end of our tutorials, you will have a better understanding of MEVN stack and how to implement an authentication system using JWTs and HTTP-only cookies. So sit back, relax, and let's get started on this exciting journey together! Learn Authentication: - Django & React Authentication with JWT - https://www.youtube.com/playlist?list=PLpQS6r2adVGe1itSjUnkmNR_JwurxvjW9 - Best React Validation Practices - https://www.youtube.com/watch?v=JjUms4aHrbs&list=PLpQS6r2adVGeqysSnHoui_8vPeJvUPZlG&index=1 - Responsive HTML & CSS card - https://www.youtube.com/watch?v=tkxTahBfZtw ? Source code: https://github.com/TuralHasanov11/mevn-authentication ? Subscribe ➜ https://www.youtube.com/@martialcoding3297 ? Follow Me On Social Media: My portfolio: http://turalhasanovportfolio.herokuapp.com LinkedIn: https://www.linkedin.com/in/tural-hasanov-1a5554204/ Follow me on GitHub: https://github.com/TuralHasanov11 00:00 Introduction 01:10 Installing Nodemon 02:45 Change package.json scripts 03:25 Setup index.js for Express app 05:55 Install npm packages 11:10 Configure CORS 15:45 Configure Database connection 18:40 Allow Credentials 21:40 Error Handler Middleware 23:33 Initialize Authentication Routes 26:35 Initialize Authentication Controller 29:40 Create default route handler for false endpoints 30:25 Create Database and initialize 33:25 Send test responses from controller 33:50 Fix allowed origins file 34:08 Fix error handler middleware 34:20 User model 40:22 Register function 49:10 Login 59:20 Logout 01:03:28 Add .exec() to DB calls 01:04:00 Continue Logout 01:07:30 Refresh token 01:16:35 Authentication middleware and get authenticated user 01:23:45 Auth middleware for authorizing the access the endpoints 01:27:33 Fixes 01:27:45 Testing all API endpoints #mevn #stack #vue #nodejs #node #express #authentication #cookies #http

Видео MEVN Stack User Authentication - Part 1 автора Магия Фронтенда с VueJS
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки