MERN stack authentication | MERN JWT Authorization

preview_player
Показать описание
In this video, we'll see how to implement authentication using the MERN stack

Don't forget to Subscribe!

TimeStamps:
Intro & MongoDB setup: 00:00 - 08:05
Creating a User Model: 08:05 - 10:34
Creating Signup route: 10:34 - 14:20
Setting up Basic form (ReactJS): 14:20 - 16:19
Handling user data: 16:19 - 19:41
Creating user: 19:41 - 25:41
User Login button and handler: 25:41 - 27:22
User Login Route: 27:22 - 32:29
Creating cookie using js-cookie: 32:29 - 34:34
Creating a Protected Route: 34:34 - 35:38
Creating isAuthenticated Middleware: 35:38 - 42:30
Testing authentication flow: 42:30 - 42:59
Outro: 42:59 - 43:26

FOLLOW ME HERE:

Рекомендации по теме
Комментарии
Автор

This guy is Literally all of my doubts have been solved by these two videos on jwt and using the refresh token. Thankkk you soo much brother. Amazing explaination

aamir
Автор

Woww had an amazing time watching this tutorial ... ✅✅

shujathaliirfan
Автор

Nyc content bro can you please explain about React-Redux🙏 as redux is little complex can u figure that easy so it will be helpful for the freshers i guess
Happy coding :)

starconsolemccii
Автор

Is it secure that you are managing cookies from the client but not from the server? Isn't the server exists for the management of cookies? I would be happy if you answer my question. I have a lot of things on my mind :)

spaceenthusiast
Автор

Hello friend, thank you for sharing your knowledge ... I am beginning to understand all this about access (login)

I have a doubt


when you use the word SECRET in
jwt.verify (token, "secret", (err, user) => {})



is it safe to put that word like this? or do you have to place it in an environment variable ???
or does it not matter what it looks like ???

I hope you understand my question my English is very bad I speak Spanish I use the translator to understand

your friend Jose Grillo greets you from Venezuela

En español:
amigo saludo gracia por compartir tus conocimiento.... ya empiezo a entender todo esto del acceso(login)

Tengo una duda


cuando usas la palabra SECRET en
jwt.verify(token, "secret", (err, user) => {})



es seguro colocar esa palabra asi? o hay que colocarla en una variable de entorno???
o NO importa que se vea???

espero entiendas mi mi ingles es muy malo hablo español uso el traductor para entender

desde Venezuela te saluda tu amigo Jose Grillo

Grishopping
Автор

Great tutorial! simple question, this tutorial complements the other video you have where you use refreshToken, right ?

Programandoenc