I didn't understand how a middleware works, but your explanation was so cool that I finally learn something real about middleware.
@orhanors18004 жыл бұрын
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 👏🏼
@mskeditors35727 ай бұрын
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
@samdragneal88843 жыл бұрын
Best jwt tutorial on KZbin .
@narimannaghavi20513 жыл бұрын
You are best man. I love your teaching style and your voice too thanks a lot , you asking my many questions about JWT😍
@swarnashikhardas4423 Жыл бұрын
Thanks a lot. I have been facing a problem for last 12 hours. Your function saves me today.
@NetNinja11 ай бұрын
Awesome! :) glad you got it sorted
@AneesKodappana4 жыл бұрын
You are really awesome, it's a comprehensive playlist of jwt based authentication in node that covered everything
@thatguy66642 жыл бұрын
Thanks Shaun! Ready to build my first real Express app but needed to learn authentication first. Well done!
@Asimz4 жыл бұрын
I've been following your tutorials recently. Great material and I have learned a lot!
@saadmalaeb83724 жыл бұрын
All hail master Shaun 🙌
@cyrilogoh61714 жыл бұрын
Hey Net Ninja please could you add a bonus videos on 'forgot password' or 'Reset password' using a mailing system
@shameekagarwal48724 жыл бұрын
it gud to see im not the only one asking for this :)
@kolbe64362 жыл бұрын
Your video was helpful to me. I am extremely grateful, thank you.
@NetNinja2 жыл бұрын
You're very welcome Kolbe!
@andromilk26348 ай бұрын
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?
@silvenleaf81704 жыл бұрын
Thanks A LOOOT Ninja Supreme!!!!
@johnconnor97873 жыл бұрын
Awesome!!!
@coderkashif Жыл бұрын
Great in details tutorial..
@NetNinja Жыл бұрын
Thank you!
@yaredweldegebrial44864 жыл бұрын
you are the best Thank u Ninja.
@yomamasofat4138 ай бұрын
What if I am using React and the routing is handled by react-router-dom? I cant verify the token on every page change
@TheTatsin4 жыл бұрын
Thank youuuu Ninja
@surajsarangi41533 жыл бұрын
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
@nooras22603 жыл бұрын
I have the same question
@jamesbornwell59672 жыл бұрын
I am facing this error Cannot read properties of undefined (reading 'jwt')
@Mamelcrispen Жыл бұрын
Same
@Mamelcrispen Жыл бұрын
Did you manage to fix it ?
@namo8850 Жыл бұрын
Same
@stivniuton7357 Жыл бұрын
its because you commented cookie parser. Uncomment the cookie parser and it should work. both the import and the use
@pramithasdhakal53677 ай бұрын
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?
@mineslime77664 жыл бұрын
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 Жыл бұрын
That was excellent
@TechWithDnes4 жыл бұрын
Awesome..
@zubairusaidu48922 жыл бұрын
how can I protect the route if I'm using Local storage to store the token?
@Abdulkadir-vb3vj3 жыл бұрын
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.
@ivanananiev66182 жыл бұрын
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 Жыл бұрын
search for Named Export vs Default Export in ES6.
@jongjinjung25193 жыл бұрын
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.
@paulandres70742 жыл бұрын
Hi Mr. Shaun, I just wanna ask how can I use this kind of middleware if I have a React.js frontend?
@houcemsings37839 ай бұрын
same problem, i will come back when i resolve it
@caramellow273 жыл бұрын
God bless you!
@mehmetilhan60833 жыл бұрын
thanks a lot
@chiragkhandelwal91784 жыл бұрын
Hello ninja 😊
@chancer12344 жыл бұрын
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?
@vigneshaithal4 жыл бұрын
Why Chrome icon coming in my PWA icon?
@uchungnguyen91583 жыл бұрын
If i copy jwt token saved in the cookie then i can log in without password or username????
@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.6174 жыл бұрын
Salamat..,
@ridl274 жыл бұрын
ty.
@muhrizqiardi3 жыл бұрын
ur wlcm
@bensonyeboah2974 жыл бұрын
Hello my friend😍😍😍
@mydrama69804 жыл бұрын
I wish these tutorials was with react
@nielfollero53 жыл бұрын
Do you now have figured it out how to apply these with react?
@thegehad Жыл бұрын
👏👏❤
@lotkutv23922 жыл бұрын
Why my "const bearerTokenHeader = req.cookies.accessToken" return undefined? can't access my cookies even the cookies are exist.