Node Auth Tutorial (JWT) #15 - Protecting Routes

preview_player
Показать описание
🐱‍👤🐱‍👤 JOIN THE GANG -
----------------------------------------
🐱‍💻 🐱‍💻 My Udemy Courses:

🐱‍💻 🐱‍💻 Course Files:

🐱‍💻 🐱‍💻 Other Related Free Courses & Links:

🐱‍💻 🐱‍💻 Social Links:
Рекомендации по теме
Комментарии
Автор

I didn't understand how a middleware works, but your explanation was so cool that I finally learn something real about middleware.

yhaelopez
Автор

So I'm almost done and throughout this journey I've combined both my logic and yours. You've been my mentor on this topic. Thanks ninjaaa. Keep it up 👏🏼

orhanors
Автор

none of the youtuber cover this jwt in such details and I was'nt clarified before even I saw 5 to 7 videos but your this series from the scratch literally made me understand this whole thing. I am very thankful to you. Great work. Keep it up

mskeditors
Автор

Thanks a lot. I have been facing a problem for last 12 hours. Your function saves me today.

swarnashikhardas
Автор

You are best man.
I love your teaching style and your voice too thanks a lot, you asking my many questions about JWT😍

narimannaghavi
Автор

Thanks Shaun! Ready to build my first real Express app but needed to learn authentication first. Well done!

thatguy
Автор

You are really awesome, it's a comprehensive playlist of jwt based authentication in node that covered everything

AneesKodappana
Автор

I've been following your tutorials recently. Great material and I have learned a lot!

Asimz
Автор

Your video was helpful to me. I am extremely grateful, thank you.

kolbe
Автор

Hey Net Ninja please could you add a bonus videos on 'forgot password' or 'Reset password' using a mailing system

cyrilogoh
Автор

I had no idea you could insert function references this way inside the get method. Is there a limit to how many you can chain this way?

andromilk
Автор

What if I am using React and the routing is handled by react-router-dom? I cant verify the token on every page change

yomamasofat
Автор

But, after signup also a jwt token is created and stored in the cookie. So, if a user tries to go to /smoothies page after sign up he will be able to. Actually, what is the reason to create jwt token after signup?

pramithasdhakal
Автор

thank you very much for this great tutorial. Somehow my requireAuth didnt work properly with third parameters (err, decodedToken). So I deleted them (and their if statement) and I put only next() and then it worked.

Abdulkadir-vbvj
Автор

how can I protect the route if I'm using Local storage to store the token?

zubairusaidu
Автор

Does someome know where i can store a redirect route, so it can redirect me back after login instead of just to the homescreen?

mineslime
Автор

Why doesn't it work if i just require the middleware normally? Why do we need to import it by destructuring it and export it as an object?? I have passed the (req, res, next) while calling the function in app.js. Please help

surajsarangi
Автор

Hello, I loved your tutorials, they are awesome! I just ran into one problem, when I add the middleware to the routes and try to load other pages, I get an infinite redirect to the login page.

jongjinjung
Автор

Ninja, I've seen instances where rather than the server pull the token from any cookies sent in the request, the token is instead in the authorization header of the request, preceded by 'Bearer'. Is this any more secure than just taking it from the cookies?

chancer
Автор

This might be a very dump question, but I tried google and I just can't find an answer. What is the point of using curly bracket when we import or export a module? Is there a name of this topic or something?

ivanananiev