Node Auth Tutorial (JWT) #15 - Protecting Routes

  Рет қаралды 59,226

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 62
@yhaelopez
@yhaelopez 4 жыл бұрын
I didn't understand how a middleware works, but your explanation was so cool that I finally learn something real about middleware.
@orhanors1800
@orhanors1800 4 жыл бұрын
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 👏🏼
@mskeditors3572
@mskeditors3572 7 ай бұрын
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
@samdragneal8884
@samdragneal8884 3 жыл бұрын
Best jwt tutorial on KZbin .
@narimannaghavi2051
@narimannaghavi2051 3 жыл бұрын
You are best man. I love your teaching style and your voice too thanks a lot , you asking my many questions about JWT😍
@swarnashikhardas4423
@swarnashikhardas4423 Жыл бұрын
Thanks a lot. I have been facing a problem for last 12 hours. Your function saves me today.
@NetNinja
@NetNinja 11 ай бұрын
Awesome! :) glad you got it sorted
@AneesKodappana
@AneesKodappana 4 жыл бұрын
You are really awesome, it's a comprehensive playlist of jwt based authentication in node that covered everything
@thatguy6664
@thatguy6664 2 жыл бұрын
Thanks Shaun! Ready to build my first real Express app but needed to learn authentication first. Well done!
@Asimz
@Asimz 4 жыл бұрын
I've been following your tutorials recently. Great material and I have learned a lot!
@saadmalaeb8372
@saadmalaeb8372 4 жыл бұрын
All hail master Shaun 🙌
@cyrilogoh6171
@cyrilogoh6171 4 жыл бұрын
Hey Net Ninja please could you add a bonus videos on 'forgot password' or 'Reset password' using a mailing system
@shameekagarwal4872
@shameekagarwal4872 4 жыл бұрын
it gud to see im not the only one asking for this :)
@kolbe6436
@kolbe6436 2 жыл бұрын
Your video was helpful to me. I am extremely grateful, thank you.
@NetNinja
@NetNinja 2 жыл бұрын
You're very welcome Kolbe!
@andromilk2634
@andromilk2634 8 ай бұрын
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?
@silvenleaf8170
@silvenleaf8170 4 жыл бұрын
Thanks A LOOOT Ninja Supreme!!!!
@johnconnor9787
@johnconnor9787 3 жыл бұрын
Awesome!!!
@coderkashif
@coderkashif Жыл бұрын
Great in details tutorial..
@NetNinja
@NetNinja Жыл бұрын
Thank you!
@yaredweldegebrial4486
@yaredweldegebrial4486 4 жыл бұрын
you are the best Thank u Ninja.
@yomamasofat413
@yomamasofat413 8 ай бұрын
What if I am using React and the routing is handled by react-router-dom? I cant verify the token on every page change
@TheTatsin
@TheTatsin 4 жыл бұрын
Thank youuuu Ninja
@surajsarangi4153
@surajsarangi4153 3 жыл бұрын
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
@nooras2260
@nooras2260 3 жыл бұрын
I have the same question
@jamesbornwell5967
@jamesbornwell5967 2 жыл бұрын
I am facing this error Cannot read properties of undefined (reading 'jwt')
@Mamelcrispen
@Mamelcrispen Жыл бұрын
Same
@Mamelcrispen
@Mamelcrispen Жыл бұрын
Did you manage to fix it ?
@namo8850
@namo8850 Жыл бұрын
Same
@stivniuton7357
@stivniuton7357 Жыл бұрын
its because you commented cookie parser. Uncomment the cookie parser and it should work. both the import and the use
@pramithasdhakal5367
@pramithasdhakal5367 7 ай бұрын
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?
@mineslime7766
@mineslime7766 4 жыл бұрын
Does someome know where i can store a redirect route, so it can redirect me back after login instead of just to the homescreen?
@userj-s2000
@userj-s2000 Жыл бұрын
That was excellent
@TechWithDnes
@TechWithDnes 4 жыл бұрын
Awesome..
@zubairusaidu4892
@zubairusaidu4892 2 жыл бұрын
how can I protect the route if I'm using Local storage to store the token?
@Abdulkadir-vb3vj
@Abdulkadir-vb3vj 3 жыл бұрын
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.
@ivanananiev6618
@ivanananiev6618 2 жыл бұрын
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?
@GauravRawat153
@GauravRawat153 Жыл бұрын
search for Named Export vs Default Export in ES6.
@jongjinjung2519
@jongjinjung2519 3 жыл бұрын
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.
@paulandres7074
@paulandres7074 2 жыл бұрын
Hi Mr. Shaun, I just wanna ask how can I use this kind of middleware if I have a React.js frontend?
@houcemsings3783
@houcemsings3783 9 ай бұрын
same problem, i will come back when i resolve it
@caramellow27
@caramellow27 3 жыл бұрын
God bless you!
@mehmetilhan6083
@mehmetilhan6083 3 жыл бұрын
thanks a lot
@chiragkhandelwal9178
@chiragkhandelwal9178 4 жыл бұрын
Hello ninja 😊
@chancer1234
@chancer1234 4 жыл бұрын
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?
@vigneshaithal
@vigneshaithal 4 жыл бұрын
Why Chrome icon coming in my PWA icon?
@uchungnguyen9158
@uchungnguyen9158 3 жыл бұрын
If i copy jwt token saved in the cookie then i can log in without password or username????
@namo8850
@namo8850 Жыл бұрын
Yes u can that is the reason the access token has an expired time and you need a refresh token to refresh the access token to make it valid again
@martinp.617
@martinp.617 4 жыл бұрын
Salamat..,
@ridl27
@ridl27 4 жыл бұрын
ty.
@muhrizqiardi
@muhrizqiardi 3 жыл бұрын
ur wlcm
@bensonyeboah297
@bensonyeboah297 4 жыл бұрын
Hello my friend😍😍😍
@mydrama6980
@mydrama6980 4 жыл бұрын
I wish these tutorials was with react
@nielfollero5
@nielfollero5 3 жыл бұрын
Do you now have figured it out how to apply these with react?
@thegehad
@thegehad Жыл бұрын
👏👏❤
@lotkutv2392
@lotkutv2392 2 жыл бұрын
Why my "const bearerTokenHeader = req.cookies.accessToken" return undefined? can't access my cookies even the cookies are exist.
@Devil-cy2tb
@Devil-cy2tb 4 жыл бұрын
hi
@nitinsaxena3082
@nitinsaxena3082 Ай бұрын
Noice brat
Node Auth Tutorial (JWT) #16 - Logging Users Out
4:14
Net Ninja
Рет қаралды 58 М.
Node Auth Tutorial (JWT) #13 - Logging Users in (part 1)
16:22
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Learn JWT in 10 Minutes with Express, Node, and Cookie Parser
10:20
Web Dev Cody
Рет қаралды 122 М.
Add Auth & Protect Routes in React in 3 Minutes (Kinde)
9:38
How to ACTUALLY Secure Your API (5 Steps)
7:42
Josh tried coding
Рет қаралды 67 М.
Node.js API Authentication With JWT
23:01
Traversy Media
Рет қаралды 558 М.
React Router Tutorial - 15 - Authentication and Protected Routes
19:46
JWT Authentication Tutorial - Node.js
27:36
Web Dev Simplified
Рет қаралды 1 МЛН
Effortless Protected Routes In Next.js Using Middleware
15:20
Code Ryan
Рет қаралды 25 М.
🤯 Express.js 5 is here (since a month already, actually)
9:58