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 👏🏼
@mskeditors35728 ай бұрын
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 .
@swarnashikhardas4423 Жыл бұрын
Thanks a lot. I have been facing a problem for last 12 hours. Your function saves me today.
@NetNinja Жыл бұрын
Awesome! :) glad you got it sorted
@narimannaghavi20513 жыл бұрын
You are best man. I love your teaching style and your voice too thanks a lot , you asking my many questions about JWT😍
@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!
@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 :)
@saadmalaeb83724 жыл бұрын
All hail master Shaun 🙌
@kolbe64362 жыл бұрын
Your video was helpful to me. I am extremely grateful, thank you.
@NetNinja2 жыл бұрын
You're very welcome Kolbe!
@andromilk26349 ай бұрын
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?
@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?
@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?
@silvenleaf81704 жыл бұрын
Thanks A LOOOT Ninja Supreme!!!!
@yomamasofat4139 ай бұрын
What if I am using React and the routing is handled by react-router-dom? I cant verify the token on every page change
@coderkashif Жыл бұрын
Great in details tutorial..
@NetNinja Жыл бұрын
Thank you!
@yaredweldegebrial44864 жыл бұрын
you are the best Thank u 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
@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?
@TheTatsin4 жыл бұрын
Thank youuuu Ninja
@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.
@zubairusaidu48922 жыл бұрын
how can I protect the route if I'm using Local storage to store the token?
@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.
@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
@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.
@johnconnor97873 жыл бұрын
Awesome!!!
@userj-s2000 Жыл бұрын
That was excellent
@paulandres70742 жыл бұрын
Hi Mr. Shaun, I just wanna ask how can I use this kind of middleware if I have a React.js frontend?
@houcemsings378310 ай бұрын
same problem, i will come back when i resolve it
@chiragkhandelwal91784 жыл бұрын
Hello ninja 😊
@vigneshaithal4 жыл бұрын
Why Chrome icon coming in my PWA icon?
@TechWithDnes4 жыл бұрын
Awesome..
@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
@lotkutv23922 жыл бұрын
Why my "const bearerTokenHeader = req.cookies.accessToken" return undefined? can't access my cookies even the cookies are exist.
@caramellow273 жыл бұрын
God bless you!
@mehmetilhan60833 жыл бұрын
thanks a lot
@mydrama69804 жыл бұрын
I wish these tutorials was with react
@nielfollero53 жыл бұрын
Do you now have figured it out how to apply these with react?