Shaun! You are a pure gold man. Although you get more views and likes by uploading random videos on specific topics you are uploading very high quality series all the time. You are a relentless and generous soul :) May you live long with great health. You deserve everyone's RESPECT.
@NetNinja4 жыл бұрын
Thank you so much Dinesh :). I appreciate it.
@programmer40474 жыл бұрын
You deserve hundreds of millions of Subscribers
@programmer40473 жыл бұрын
@@laynegianni3423 Don't Try To Scam People. It's fake. These two comments are made by bots
@toberixng4 жыл бұрын
How could people be this generous, I took your ReactJs crash course and boom building new project. Thanks a million.
@ShashotoANur4 жыл бұрын
No doubt this is the best node auth tutorial in the world.
@mastersoftware014 жыл бұрын
Thank you very much for what you have done. I watch your videos with pleasure.
@dfcw4 жыл бұрын
Thank you so much, you're the first guy I check if I need to learn anything!
@spaceghost1664 жыл бұрын
Another great series! Thanks for all your efforts!
@ridl274 жыл бұрын
I thought my bell is broken or my account was hacked but it was Shaun who decided to like all my comments at once xD ty for this series :)
@NetNinja4 жыл бұрын
Haha, I was taking a couple of hours out to try and reply to & like comments :)
@harshsachala214 жыл бұрын
Well done, i am coding along side as well thank you so much for all your efforts, i am gonna add few tweaks after this series is done!
@practicosbarcelona3904 жыл бұрын
The best teacher I've ever had. Thank you very much !!!
@Daniel-nb3kk4 жыл бұрын
"That's just bonkers." - Brilliant!
@ComfortHomeMassageChairs Жыл бұрын
Best tutorial i ever seen. i watched many many videos finally found good one.
@Asimz4 жыл бұрын
Quality instruction as always!
@kelp-chip3 жыл бұрын
Thank you so much, these tutorials are awesome!!! 💖I Was able to tweak all these auth steps to work with a React frontend. The only thing that didn't seem to work in React (for me) was the res.local bit, but I was able to get it working by changing this middleware to a route and sending back the user info that way. All that + useEffect has been working for me for displaying current user info. Hopefully that made sense and could potentially help someone else trying to use React.
@nnevid2 жыл бұрын
Awesome tutorial! thanks so much, I have a question for all you guys, how did you automatically import the User model in this file? I see the "Auto import from : /models/etc" window at 3:19, but is there a plugin for that, my vscode didn't propose that, i had to import it with the require...thanks :)
@akn96994 жыл бұрын
Oh Lord Shaun ! Bless us all with your power of divine invisibility..............
@sleep-4043 жыл бұрын
you sure have been sent by some angel to look after us (mere humans)
@mrabodo7a10 ай бұрын
amazing content! best on the web!
@NetNinja10 ай бұрын
Wow, thanks!
@abe104 жыл бұрын
How many more vids to come on this series Shaun? I was hoping to see all of them together 😅
@NetNinja4 жыл бұрын
Only 1 more now :)
@ayoubnachat59203 жыл бұрын
you helped me a lot thank you so much master
@neznami_clovek4 жыл бұрын
Hey Shaun, I love your videos! I just wanted to ask, why you used "app.get('*', checkUser)" insed of "app.use(checkUser)". Is there a reason, or is it the same?
@NetNinja4 жыл бұрын
Hey, app.use will fire the middleware on all types of requests - POST, PATCH, PUT, DELETE, etc. I ddn't want this - I only wanted to fire the check auth middleware on GET requests for pages.
@mahmoudtareq57824 жыл бұрын
the first thing i want to do is to thank you for all this beautiful courses, really i love your way of teaching us the second thing i want to ask is what is the best way when receiving the token. each time if i want the username should i store it in the browser when i login or with each request send it back with the rest of data i need?
@ashG12344 жыл бұрын
Hi how can we use this JWT token in a cookie in a Flutter mobile app? Do we need to use local-storage instead?
@bensonyeboah2974 жыл бұрын
Awwwww thanks so much ninja💪
@ibrahimkholil62624 жыл бұрын
Hei Shaun! It would be great if you can make a series of next.js. Wating for it for a long time. Please make a series on it soon.
@NetNinja4 жыл бұрын
I really want to get around to doing it soon too :)
@VarunSharma-xc9fl4 жыл бұрын
How can I implement and use this middleware sending data in REACT native?
@Akpanmeme2-nl6yc3 ай бұрын
Are you british, please I love the way you speak, and pronounce fluently and clearly
@NetNinja3 ай бұрын
Yes :) Manchester, England to be precise! thanks for your kind words.
@wordspace1215 ай бұрын
I have set res.locals.currentUser = null . But after logout it is showing currentUser as undefined. Anyone with the solution?
@mahmoudfathy73532 жыл бұрын
I did the same but I'm facing a problem I get an error that user is not defined
@alamir4112 жыл бұрын
This was a long way to reach that point
@utkarshgaming81537 ай бұрын
very good playlist .I used express as a backend and Vue as a frontend.
@g.bagiryan4 жыл бұрын
Can anyone help? When I log out I can still access the users page by pressing "back" in the browser
@JJ-re5fy3 жыл бұрын
In his checkUser function, I don't understand how in line 35 he can call let user = await User.findById(decoded.token); Where is User defined?
@PowerWolf_UA3 жыл бұрын
3:24 User is defined in the top "const User = require('../models/user')"
@luisaugsburger3 жыл бұрын
I had an error beacuse of this. I fixed importing at the top "const User = require('../models/User');"
@titofrezer62012 жыл бұрын
Thank you shaun
@NetNinja2 жыл бұрын
No probs Tito!
@denizhbeyaz4 жыл бұрын
Can you make a MERN version of this, master?
@ShashotoANur4 жыл бұрын
Net ninja has the best react tutorial. Check it out. Then replace the frontend of this app with react.
@biswajitbhunia34234 жыл бұрын
how many videos are left to complete the series??
@silvenleaf81704 жыл бұрын
One more!! Total 18
@thomasl3205 Жыл бұрын
Thank you~😀
@ayushkwal4 жыл бұрын
I stuck on a problem. Can anybody please help me! why I am getting "findById is not a function" error
@nielfollero53 жыл бұрын
Ha! I got the same error on the previous episodes. Upon checking stackoverflow that doesn't really addressed that problem, I noticed a code snippet that contains, I think ES5 function, that doesn't use arrow function(ES6). Then I checked my code if I was using ES5 function and I saw I was not. Then I remembered master Shawn mentioned that we should use the ES5 function in order to access the 'this' inside our statics function so yeah, use ES5 function instead of arrow function.
@royangagas25194 жыл бұрын
one episode again this series is end huhuhuhuhu T-T
@hadrienjaubert62734 жыл бұрын
Thank you so much for this awesome series ! However after coding the checkUser function I get an errror : 'TypeError: Cannot read property 'jwt' of undefined '. Could you help me please ?
@zael78483 жыл бұрын
Same here!
@michealdaniel96552 жыл бұрын
For anyone who is curious, I had the same problem described above. I learned that I mispelled "req.cookies.jwt" as "req.cookie.jwt." Notice the missing 's' after "cookie." Also, I did not import my User model in the top of my authMiddleware.js file. After fixing these issues, my project worked beautifully lol
@martinp.6174 жыл бұрын
Salamat..,
@youth17604 жыл бұрын
Can you make tut about .NET Core? If you're familiar with