Node Auth Tutorial (JWT) #2 - Auth Routes & Controllers

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 79

  • @gyenabubakar
    @gyenabubakar 4 ปีที่แล้ว +29

    I've been searching for a JWT course but couldn't find any. Now, my favourite tutor has it. Way to go Shaun! 🙌 💯

    • @destinlee
      @destinlee 4 ปีที่แล้ว +1

      right?!?!?!?! :-D

  • @julianstorm7722
    @julianstorm7722 4 ปีที่แล้ว +5

    Love how you show a different way of exporting the controls and setting the router as opposed to in your node crash course. Great attention for detail. Thanks for your time.

  • @subhodeepbhowmick5788
    @subhodeepbhowmick5788 4 ปีที่แล้ว +7

    Notification: Net Ninja uploaded a video.
    Me: i need to be there ❣
    Thank you shaun for making us a better programmer. Can't thank enough

  • @badripaudel77
    @badripaudel77 3 ปีที่แล้ว +2

    What an amazing tutorial, probably best instructor on planet ♾️♾️♾️

  • @mabroorahmad2182
    @mabroorahmad2182 4 ปีที่แล้ว

    I am astonished the way you take organized approach to a problem💖💖💖💖💖

  • @ezrakeeps
    @ezrakeeps 4 ปีที่แล้ว +7

    I set an alarm to wake me 10 minutes pria to net ninja uploading tutorials daily

    • @NetNinja
      @NetNinja  4 ปีที่แล้ว +12

      😁⏰⏰⏰

    • @ezrakeeps
      @ezrakeeps 4 ปีที่แล้ว

      You upload at 10:20 am in my local time
      My lessons start at 11am
      Good timing

  • @dhanmoninath834
    @dhanmoninath834 4 ปีที่แล้ว +8

    Alright then gang❤️❤️❤️

  • @davidk7212
    @davidk7212 ปีที่แล้ว

    I love how this basically continues right where the Nodejs series leaves off. Seamless.

  • @rudrajoshi9062
    @rudrajoshi9062 4 ปีที่แล้ว +2

    Sir you are awesome , I learn MERN stack because of you

  • @udayatthuluri8266
    @udayatthuluri8266 4 ปีที่แล้ว +5

    wow it's an amazing series please make it into full-stack using react js as front end

  • @LumbreraEnMiCamino
    @LumbreraEnMiCamino 4 ปีที่แล้ว +1

    This is what we're waiting for! Thanks.

  • @tanveerulhoque6803
    @tanveerulhoque6803 4 ปีที่แล้ว

    Just finished the node tutorials couple of days ago...i dont think u r human master..take love from small south asian country bangladesh

    • @NetNinja
      @NetNinja  4 ปีที่แล้ว +2

      Thank you 🙏

  • @jomarkpangan9362
    @jomarkpangan9362 4 ปีที่แล้ว

    Commenting to help with youtube algorithm. I always forget to do this so
    I will just go back to all the videos and comment. thank you so much
    shaun. what a chad :D

  • @NathanBudd
    @NathanBudd 4 ปีที่แล้ว +2

    So much great content, and after watching a TraversyMedia video that you recorded, I realised how much I've learned from you.
    Would be great to have a start to finish Node API and React Front end video at some point.
    Keep up the great work Shaun!

    • @NetNinja
      @NetNinja  4 ปีที่แล้ว +3

      Thanks :). I'm sure at some point I will do something like this!

    • @NathanBudd
      @NathanBudd 4 ปีที่แล้ว

      The Net Ninja cool! Just re-read. It's not a "I've joined so I think you should do this" request btw.
      Loved your Node course and the Modern react content (hooks, context etc) and it would be great to see how it's all tied together.

  • @rushtothemax76
    @rushtothemax76 4 ปีที่แล้ว

    Great tutorial was searching for a jwt course. Ur a king

  • @bijayaadhikari442
    @bijayaadhikari442 4 ปีที่แล้ว +30

    Why not create a full Node, MERN course in Udemy or on your own platform.

  • @johncerpa3782
    @johncerpa3782 4 ปีที่แล้ว

    Excited for this new series

  • @manthangandhi2639
    @manthangandhi2639 4 ปีที่แล้ว

    Best ever tutorial of JWT everything is just looking very east now because of Shaun.!!!
    Net Ninja we want a updated firebase flutter App Tutorial pleaseee

  • @seydouloum9205
    @seydouloum9205 4 ปีที่แล้ว

    The best of the tutors is you

  • @akn9699
    @akn9699 4 ปีที่แล้ว +11

    We need to replace The Statue of Liberty with Shaun !

  • @destinlee
    @destinlee 4 ปีที่แล้ว

    Really hoping this makes Auth click in my head. So excited!!!!

  • @xiija
    @xiija 3 ปีที่แล้ว

    Love these tutorials & this dood is awesome:)
    i added {user: false} in these 2 areas to stop 'user is not defined' ...on load
    res.render('signup' , {user: false});
    res.render('login' , {user: false});

  • @kaungpyae9982
    @kaungpyae9982 4 ปีที่แล้ว

    You are one of my favorite tutor all time.I want to see you outside and some chat with you if I have a chance one Day!!!!!!!!!!

  • @diegoavendanohernandez9908
    @diegoavendanohernandez9908 7 หลายเดือนก่อน

    the best tutorials!

  • @takdean3440
    @takdean3440 4 ปีที่แล้ว

    Been waiting for this!! Thanks g

  • @duke_hammersmith_iii
    @duke_hammersmith_iii 3 ปีที่แล้ว

    What a fantastic tutor, Great pace, great explanations. Dodgy accents :)

    • @NetNinja
      @NetNinja  3 ปีที่แล้ว

      Haha thank you :)

  • @SouthernSeneca
    @SouthernSeneca ปีที่แล้ว

    beautiful tutorial mate, thanks

    • @NetNinja
      @NetNinja  ปีที่แล้ว

      No probs, hope you found it helpful! :)

  • @ead5590
    @ead5590 4 ปีที่แล้ว

    Yo!! Doing these tutorials along with the VSCode MongoDB extension is like some other worldly experience..
    There's no need to open the Atlas desktop app unless you really need to use the Atlas app features..
    Now that's a totally awesome extension to have.. 😆

  • @chitramdasgupta3122
    @chitramdasgupta3122 4 ปีที่แล้ว +1

    Thank you for these brilliant tutorials. I really appreciate it. Do you plan to show how to add a react frontend to node auth?

    • @TheAdel136
      @TheAdel136 4 ปีที่แล้ว +1

      just fetch the data from react js to your nodejs api ... as simple as that !
      ofcourse you will need to handle the input fields in your react application !
      and dont forget to configurate the proxy in your package.json to be able to combine front end with the backend ;) good luck bro !

  • @LumbreraEnMiCamino
    @LumbreraEnMiCamino 4 ปีที่แล้ว

    please can you teach us how to apply Model-View-ViewModel pattern in this project?

  • @L0kacitron
    @L0kacitron ปีที่แล้ว

    What's the typical error when you get Error: Failed to lookup view "signup" in views directoryctory ... when you try to visit the pages in the end? Im trying to figure out if my map structuring is wrong or if Ive mispelled something but I can't seem to find the problem. I'm a beginner :)

  • @LoveLiveAndCode
    @LoveLiveAndCode 4 ปีที่แล้ว

    Keep On Keeping On...

  • @ahmedtiger6155
    @ahmedtiger6155 3 ปีที่แล้ว

    the auh-controller doesn't work for me it throws an error that i can't use an object with
    Route.post
    but replacing it with the call back function normally worked for me

  • @codeinnode4490
    @codeinnode4490 2 ปีที่แล้ว

    Done Great Tutorial :)

  • @StalkingPlagiarist
    @StalkingPlagiarist 3 ปีที่แล้ว

    Hi Shaun, awesome as always. Which VS Code extension are you using for EJS? I see you have a nice icon for EJS files. My EJS files are badly formatted and come with an asterisk in front.

  • @adad8795
    @adad8795 4 ปีที่แล้ว

    Awesomeee ✌️😃

  • @bijeyta1028
    @bijeyta1028 3 ปีที่แล้ว

    Only you write exports.signup_get = (req,res) => { } then it will also works why to write an extra module each time ...

  • @saiseshnagpithani4448
    @saiseshnagpithani4448 3 ปีที่แล้ว

    Hello Shaun, can you share the font name, you use in PowerPoint?

  • @TechCreatorsHub1
    @TechCreatorsHub1 3 ปีที่แล้ว

    can we use this Auth System in production that we have created in this playlist? please reply

  • @mandihaase2744
    @mandihaase2744 3 ปีที่แล้ว

    I am so excited for this tutorial, but upon initial setup I am running into issues with MongoDB: DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version. Also, Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
    (Use `node --trace-warnings ...` to show where the warning was created). Any suggestions on how to troubleshoot?

  • @prafulrane3591
    @prafulrane3591 ปีที่แล้ว

    What should I do next
    Can you make a pathway video to know how should we follow your playlist from your channel for every new technology?

  • @prashanthvamanan1513
    @prashanthvamanan1513 4 ปีที่แล้ว

    Hey Shaun! Thanks for the series as always. Just a quick question. Instead of attaching module.exports to each handler function is it not better to create all the functions separately and then export them together as a object with module.exports = { // list of functions here } ?

    • @rohit1kumar
      @rohit1kumar 2 ปีที่แล้ว

      Yes we can do that

  • @tannerbarcelos6880
    @tannerbarcelos6880 4 ปีที่แล้ว

    Some people make a controllers folder and put a sub folder for routes in it, and then any other logic in the controller folder itself. I notice you completely separate the routes from the actual controller logic . So you still conform to MVC but you abstract away the actual routes. I like this approach, and prefer it, but in a real world setting, what do you think is more common? Or know that is more common?
    I’m really trying to understand structure of node backends and the whole MVC architecture and I want to tackle the best design practices. And I feel like your architecture here makes a lot of sense

    • @NetNinja
      @NetNinja  4 ปีที่แล้ว +1

      Hey, I think it really depends on personal pref and the project itself. For small projects I like this structure because it’s clean & clear. But for large ones with lots of features or resources I might structure it by feature or resource. Really depends but I don’t believe there to be 1 absolute approach.

    • @tannerbarcelos6880
      @tannerbarcelos6880 4 ปีที่แล้ว

      The Net Ninja makes sense! Thanks for all your hard work man. This series has me super hyped. I’m graduating comp sci in a semester and I am trying to pursue full stack roles and this series is literally perfect!

  • @takdean3440
    @takdean3440 4 ปีที่แล้ว +1

    Shaun I was just wondering. Why don't you setup a discord server for the community to hang out? I think it'd be fantastic

  • @r4b139
    @r4b139 4 ปีที่แล้ว

    thank you a lot ❤💖

  • @anishjoshi1999
    @anishjoshi1999 4 ปีที่แล้ว

    lecture 2 completed!!

  • @gillesgoutard9639
    @gillesgoutard9639 3 ปีที่แล้ว

    hi thanks for your tutorials they are awesome! a question though i have this message : (node:17272) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
    (Use `node --trace-warnings ...` to show where the warning was created)
    (node:17272) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in
    the next major version.
    it's strange because i did your previous tutorial on Node and I didn't have that message.
    cheers!

  • @estherbuchi6298
    @estherbuchi6298 ปีที่แล้ว

    Shaun can you redo this tutorial? there isn't alot of oauth videos with mvc approach on a node api

  • @theprantadutta
    @theprantadutta 4 ปีที่แล้ว

    I am getting this error in the console. Can anybody help?
    Error: queryTxt ETIMEOUT cluster0.cjfv1.mongodb.net
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:203:19) {
    errno: undefined,
    code: 'ETIMEOUT',
    syscall: 'queryTxt',
    hostname: 'cluster0.cjfv1.mongodb.net'
    }

    • @abdifaishal6562
      @abdifaishal6562 4 ปีที่แล้ว +1

      try change your dns to google dns or you can use Driver Version 2.2.12 in Connect to Cluster0

    • @farhanbinamin
      @farhanbinamin 4 ปีที่แล้ว

      change the mogobd URI with the one you created.

  • @Abdulkadir-vb3vj
    @Abdulkadir-vb3vj 3 ปีที่แล้ว

    "Router" keyword didnt work in my case. I think it is deprecated as of 2021 October. So, You can change big "Router with "express" and small "router" with "app" keywords. And lastly you are my great Master. I became a full stack dev with your great videos. Thank you very very million times much

  • @romilsahay7584
    @romilsahay7584 2 ปีที่แล้ว

    Could you please answer me . What is req.user is it work as req.body

  • @shazaalbeik1373
    @shazaalbeik1373 4 ปีที่แล้ว

    You are awesome

  • @salahalhashmi6528
    @salahalhashmi6528 3 ปีที่แล้ว

    thank for course

  • @unchart_d
    @unchart_d 4 ปีที่แล้ว

    Please dont forget Flask and Ruby on rails please, especially ruby on rails.

  • @martinp.617
    @martinp.617 4 ปีที่แล้ว

    Salamat..,

  • @ridl27
    @ridl27 4 ปีที่แล้ว

    ty.

  • @NitinKumar-is2db
    @NitinKumar-is2db 4 ปีที่แล้ว

    when is the next video comming?

    • @NetNinja
      @NetNinja  4 ปีที่แล้ว

      in the morning (uk) :)

  • @SeeKnowledge
    @SeeKnowledge 4 ปีที่แล้ว

    1 Billion likes

  • @tilakmadichettitheappdeveloper
    @tilakmadichettitheappdeveloper 4 ปีที่แล้ว +1

    hey there Shaun ! do you have a twin brother that works while you are asleep ?

    • @NetNinja
      @NetNinja  4 ปีที่แล้ว

      lol, I wish I did.

  • @rakiop
    @rakiop 4 ปีที่แล้ว +1

    please create a flutter course with a project like eCommerce or social media in udemy or your own platform

  • @theLazyPragmatic
    @theLazyPragmatic 4 ปีที่แล้ว +1

    one downvote. who does this?