Главная
Study mode:
on
1
Intro
2
Welcome
3
Quick lessons recap
4
Authentication vs Authorization
5
Starter Code
6
Add auth routes to server
7
Auth routes router
8
Rate limiting middleware
9
Auth controller
10
Adding controller methods to auth routes
11
Understanding the JWT auth process
12
Create token secrets with Node.js
13
login method in auth controller
14
refresh method in auth controller
15
logout method in auth controller
16
Create middleware to verify JWTs
17
Apply verifyJWT middleware to routes
18
Test the login endpoint with Postman
19
Test the refresh endpoint with Postman
20
Test the logout endpoint with Postman
21
Test the verifyJWT middleware with Postman
Description:
Learn to implement MERN Stack Authentication and Authorization using JWT Access & Refresh Tokens and secure cookies in this comprehensive video tutorial. Explore the creation of auth routes and an auth controller for a REST API that handles authentication and issues JWT tokens for valid users. Dive into topics such as rate limiting middleware, understanding the JWT auth process, creating token secrets with Node.js, and implementing login, refresh, and logout methods in the auth controller. Follow along as the instructor demonstrates how to create middleware to verify JWTs, apply it to routes, and test various endpoints using Postman. Gain valuable insights into building secure and robust authentication systems for your MERN stack applications.

MERN Stack Authentication with JWT Access, Refresh Tokens, Cookies

Dave Gray
Add to list
0:00 / 0:00