Node Auth Tutorial (JWT) #1 - Intro & Setup

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • In this Node.js Auth ttorial series we'll learn how to implement an authentication system using Node.js, Express, MongoDB & JSON web tokens (JWT). To begin with we'll set up an Express app using starter files which can be found here - github.com/iam...
    🐱‍👤🐱‍👤 JOIN THE GANG -
    / @netninja
    ----------------------------------------
    🐱‍💻 🐱‍💻 My Udemy Courses:
    Modern JavaScript - www.thenetninj...
    Vue JS & Firebase - www.thenetninja...
    D3.js & Firebase - www.thenetninj...
    🐱‍💻 🐱‍💻 Course Files:
    github.com/iam...
    🐱‍💻 🐱‍💻 Other Related Free Courses & Links:
    Node.js Cash Course - • Node.js Crash Course T...
    Modern JS Tutorial Preview - • Modern JavaScript Tuto...
    Get VS Code - code.visualstu...
    JWT Debugger - jwt.io/
    🐱‍💻 🐱‍💻 Social Links:
    Facebook - / thenetninjauk
    Twitter - / thenetninjauk
    Instagram - / thenetninja

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

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

    Starter files on GitHub - github.com/iamshaunjp/node-express-jwt-auth/tree/lesson-1
    Node.js Crash Course - th-cam.com/video/zb3Qk8SG5Ms/w-d-xo.html

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

      Finally...
      Thankyou You are My Ninja...

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

      How many episode of this?

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

      about 18 in total

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

      @@NetNinja wow😮

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

      Is OAuth covered in the series?

  • @itskarudo
    @itskarudo 4 ปีที่แล้ว +80

    at this point shaun has a glitch in the matrix that can't let him stop blowing our minds

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

    It is now 100% confirmed that The Net Ninja can literally read my mind!!
    I wanted to learn JWT and here is net ninja with JWT tutorial.
    Thanks a lot!!

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

    This is so precious! I've already seen some tutorials on the subject but the clarity of what you say is incomparable. Let me spend some time appreciating that you are a part of this world.

  • @RexGalilae
    @RexGalilae 4 ปีที่แล้ว +10

    This dude reads my mind. Just when I wanted this, he creates a series on it

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

    This man just don't stop. He on faa yaaa! 🔥
    Keep it comin Ryu! ✌🏻

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

    my favourite thing is when I realise I want to learn about a topic and then see you've already made the videos

  • @Ryan-ff2db
    @Ryan-ff2db 4 ปีที่แล้ว +7

    Nice! I've managed to get JWT working on one of my projects by "following other videos" but I don't feel entirely comfortable with it. I'll be looking forward to this one. Shaun has a way of explaining things so you understand what you're doing and not just getting it to work.

  • @arvindbisht4605
    @arvindbisht4605 4 ปีที่แล้ว +9

    Hey Shaun, You’re an absolute legend, loved the way you teach . I am interning somewhere and they also use jwt ,was having a hard time with jwt but now I am sure i will understanding all of it. Thank you mate ❤️

  • @ShubhamSharma-io3tt
    @ShubhamSharma-io3tt 3 ปีที่แล้ว +4

    Whenever it is me trying to learn and master the web development skills, it's you who makes it super simplified. Thank you so much, Shaun!

    • @JoseDiaz-ph4sl
      @JoseDiaz-ph4sl 3 ปีที่แล้ว

      Same for me, it's saddening when he doesn't a a topic on something i want to learn, but I'm still very thankful for everything he has taught me.

  • @thomaspynchon8400
    @thomaspynchon8400 4 ปีที่แล้ว +68

    I'm still waiting for a full stack MERN app by the GOAT

    • @Nexus-rt1bm
      @Nexus-rt1bm 4 ปีที่แล้ว +1

      *Ninja

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

      @@Nexus-rt1bm *Master

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

      @@hackzyoboy2459 *Sensei

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

      GraphQL-OAuth-Apollo-Typescript?

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

    oh my God, bro You dont know how much I love you, You are literally the best instructor ever, you wont understand how happy i am to see this video available
    😭 Please keep up the good job, Your node js playlist helped me alot. Damn am really crazy for you man.

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

      He's here Changing lives on TH-cam man

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

    Very good intro. I watched one of your videos on Node Auth a few months back to help me understand a concept for a project I was working on at the time. Now, my university is on Christmas break and I'm here to finish the entire series on Node Auth, you're awesome, Good Job!

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

      Glad it was helpful! :) thanks Kolbe

  • @sophiali-CBR-AU
    @sophiali-CBR-AU 3 ปีที่แล้ว +1

    Sir, you are the best teacher who can explain the complicated thing in a very clear and direct way. After watching many series of your videos, I learnt a lot and love your teaching style. The best thing in 2021 is that I met you in TH-cam. Hope you can make more videos in the future. Best wishes for you.

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

      Thank you so much :)

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

    FINALLY a tutorial which includes a login form. THANK YOU. So frustrating to watch other videos and they don't finish by actually logging in

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

    The only thing this Channel lacks now is fullstack MERN project. Would really be glad if we can have that next

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

      maybe first appreciate what this channel already be

  • @velrinblack5447
    @velrinblack5447 4 ปีที่แล้ว +18

    What is going on!?
    After one tutorial u give us another without one day break! How you do it?
    Thanks so much for this one. You are awesome!

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

      Ninjas never sleep 🤣

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

    Outstanding explanation! Straight to the point. Just what I needed for a project that I am working on.

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

    The Net Ninja is the best dev channel on youtube... thanks for all your work

  • @liamm5906
    @liamm5906 3 ปีที่แล้ว +1

    I swear this guy has everything I could ever think of.

  • @techlead...
    @techlead... 4 ปีที่แล้ว +20

    I just became a Ninja 👨‍💻

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

    Wow. I was just finished the Node. js tutorial and now this.

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

    You are the best instructor
    you read my mind shaun
    i m eagerly waiting for this
    🤩🤩🤩🤩🤩

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

    Your channel is always my go-to place for all web stuff that i want to learn and get a grip on, esp. when I'm confused with complex stuff! Thanks heaps, sensei Ninja!

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

    Having just done this for an mern app myself with another tutorial, I'm looking forward to your approach to further grasp the core concepts!!

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

    shaun i just love your work i commented on your node crash course series about this course and here you are with advance playlist thanks for your hard work you are my inspiration I'm from india i wanna meet you once before i die ❤️❤️

  • @ashongabdalla5940
    @ashongabdalla5940 4 หลายเดือนก่อน

    I know this is a bit late. But I just completed your node course and it was fantastic. Looking forward to covering this part. Thanks Ninja

    • @NetNinja
      @NetNinja  4 หลายเดือนก่อน +1

      Awesome, thank you!

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

    I will be very glad of you create a website that have admin and user dashboard at the same time using JavaScript and nodejs which less routes on the website
    Thanks you the best so far

  • @abhinav.sharma
    @abhinav.sharma 4 ปีที่แล้ว +3

    Exactly what I was looking for!!!❤️❤️❤️❤️

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

    Hey Shaun, congrats for the new series! Pls dont forget the vue-laravel series! Thanks and keep going, you are on fire!

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

      I won’t forget about that one 🙂

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

    Best channel on YT to learn coding

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

    Thank you! I bought you a React course in Udemy, but I decided to learn pure javascript as much as I can before a framework, even I've worked with Angular before. Hope to learn everything soon, including JWT auth.

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

    Yayyyyy thank you !!!! I have used JWT but I still have questions and there are parts I don't understand so this is great !!!!

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

    Hey NetNinja,
    Thanks bro, ❤️
    You know I'm waiting for this from last 1.5 months.

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

    Perfect timing on this. Needed this for a project for work and passing data via JWT.

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

    i regret that i purchased a lot of courses in UDEMY where in this "MAN" teaches everything, short videos but the information is like a ocean, straight to the point, no acting, no scripts and clearer than the sky! Well, that's a big lesson to me. I unfollow all youtube channel except for this great channel! I hope youtube will have the best channel award, then surely THE JET NINJA is one of the top 5 or 3 maybe! Sorry for this long comment, i just express my feelings when i found this channel. Keep it up SIR! big respect from PHILIPPINES!

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

    Can't believe it's been uploaded just before i needed to learn jwt!
    Can't thank you enough for this😃

  • @Ethan-gs5ib
    @Ethan-gs5ib 11 หลายเดือนก่อน

    Hey Shaun, love all your tutorials, I've watched heaps of them.
    Do you have any series on how to go from local to a hosted MERN application? Would be awesome.
    Thanks!

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

    This is quality content. I can say most of your free contents are by far better than paid contents. I will rate you 110% out of 100%

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

      For sure.

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

    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

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

    Oh my, been waiting for this one!!! Super excited :D Thank you for getting to this!!!

  • @Global-y8p
    @Global-y8p 6 หลายเดือนก่อน

    one of the best tutorial ever

  • @K-IA
    @K-IA 4 ปีที่แล้ว

    I was looking for this today and you just uploaded a video about it.
    Thanks for the hard work.

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

    I love it so much when it's related to node&express&mongodb! thanks man!

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

    THANKKKKKKKKKKK YOUUUUUUUUUUUU!!! I've been waiting for this tutorial from you, finally my wish come true :DDDD

  • @programingwizard5312
    @programingwizard5312 4 หลายเดือนก่อน +1

    If you are watching this tutorial in 2024,
    if you run the starter files you might see some warning
    just update all the package it will remove all the warnnings/issues
    and follow along the error and remove some of the options that are depricated
    then you are good to go.

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

    Thank you! I always enjoy your courses.

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

    Please don't stop doing quality videos like these!!!

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

    Thanks for starting this awesome series. Much needed.

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

    I struggled a lot to implement JWT in a Laravel Lumen project. I'm really curious to see how this goes in comparison to that. Anyway, thanks for the great tutorials you produce.

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

    A couple more tutorial playlists such as this one and The Net Ninja will have officially landed me a job as a developer.

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

    I rushed through all of the 18 branches on your GitHub repo, and gotta say, this was just what I needed for a card game of mine. I also use Express and mongoDB, but mongoose was new to me, integrating it was super easy. Can't wait to see how you explain all of your 18 branches in your videos! Thanks a lot!

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

    Thank you Ninja🙏, i hope it will be a part for front (vue js ou vanilla js) so we can understand it with real exemple, most of tutorials uses postman but this is not the real world projects. Thank you again for your lessons

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

      Hey - we will use a real front-end to make requests & log in etc, but also use Postman to test as we build.

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

      @@NetNinja you rock! Thank you

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

    Hello, I just saw.. Your page on.. Tech best TH-camr and I voted you 😀

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

    Thank you master ninja for this series. I used to build authentication with passport.js and it made me very depressed and I felt very inferior! Now I will build authentication all by myself without needing any third party interference.

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

      AWS cognito handles it all for me, isn't it just one less thing to worry about.

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

      @@lardosian legends make their own breads themselves!

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

      @@RameenFallschirmjager Yes but one could also argue not to use Express or ejs but pure Node if that's the case!!

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

    Man, I appreciate your dedication, hats off

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

    Hey Shoun, thank you man ;) you are a legend. Man I want to ask you something, where do you get your SVGs when working on a project? I´m learning Adobe Illustrator but nah, so boring to make my own SVGs :v

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

    Wowowowowow this is what I have been looking for!! Thank you sensei you're the best teacher

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

    Thank u shaun for this awesome auth. series.

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

    just what i have been waiting for

  • @lucasfelipe-ze5sy
    @lucasfelipe-ze5sy 4 ปีที่แล้ว

    I have been looking forward for this video :)

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

    Thank you so damn much man, for this ❤️ you've always been doing the top class tutorials 🔥🔥🔥

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

    Shaun, one big fullstack course to rule them all would be amazing, I'd pay for that without even thinking about it. Why not build your own platform and host the course there. You could also just tell me to flip off!

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

    Can you do a course on Sequelize with Node for the next series, pretty pls?
    Loving all these vids!

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

    Awesome Stuff Bro. Waiting for a NextJs tutorial

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

    best channel i found on youtube !

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

      Thanks Daniel :) that's very kind

  • @محمد_وسام
    @محمد_وسام 4 ปีที่แล้ว

    I was waiting for this one!! Thanks

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

    I'm really too much excited 😊❤️

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

    Hey Shaun, could you make a series about Node API testing? Thanks for the great videos

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

    Yayyy! Lot of Love Shaun, You are awesome :)

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

      Thank you :)

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

    Fantastic series. Thanks very much.

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

    Thi is something i am looking for. Thnk u Shaun

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

    I need thisssss......later .... I'm still learning react......ahhhhh....i wanna learn everything you teach

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

    Somebody call 911, Shaun is fire burning for the devs, woah....... I'll show myself out xD

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

    Can you reccomend some html and css projects for begginers after they commpleted your html and css course.
    I reccomended your tutorial to my friends now they all are learning from you :)

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

    I really need this one.
    Thank you so much.

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

    I plan to follow this series, in addition to what I learned through NodeJS Crash Course.
    Thanks. Edit : I'm going to throw out your EJS package.

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

    This is great
    Another video series
    Waiting for react router 6 and vue 3

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

    Great as always , can't thank you enough

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

      Thanks for the support Amy! :)

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

    thank you Shawn. so much to catch up hehe. Shawn how to create /id/ when user click on bana smoothie it will take you to that particular id in detail page

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

      Hey, you'll need to set up a new route & handler for that using route params. I talk about how to do all that in my node crash course tutorial. Here is the video for it - th-cam.com/video/VVGgacjzc2Y/w-d-xo.html

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

      @@NetNinja thank you for everything

  • @RJ-vh4og
    @RJ-vh4og 3 ปีที่แล้ว

    you helped me a lot. great video!

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

    Awesome! A solid auth course!

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

    Você é o melhor! (You're the best in portuguese!)

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

    Thanks a lot for this video, You are the best in the world !!!

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

    yess! finally!

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

    You are just amazing thank you so much ! Could you later on do a tutorial with a button "Forgotten Password" to show us how a user could reset his password if he had forgotten it ?

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

    God sent you on earth for me!

  • @jayc.2118
    @jayc.2118 4 ปีที่แล้ว

    I have one suggestion:Please use postman like services for requests, rather than using ejs pages, i mean we are not actually going to use those pages when we start with frontend code, and it will save the time and we might understand req, response things better..

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

    Yeyy another node tutorial!

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

    Ahhh I can’t wait for his React Udemy course

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

    I cant thank you enough for your work

  • @QuanNguyen-og6pq
    @QuanNguyen-og6pq 3 ปีที่แล้ว

    top notch tutorial!

  • @abhinav.sharma
    @abhinav.sharma 4 ปีที่แล้ว +1

    Shaun loves food way too much.

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

    just awesome !!

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

    General question regarding connecting to mongodb: Is it always/usually the case that we don't need to include the string after the DB name when connecting? What's the purpose of that extra bit of string? Thanks.

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

    thank you very much from algeria

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

      Thanks and hi to Algeria!

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

    Love you my ninja 💓

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

    6:34 that "right here" caught me off guard 🤣🤣

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

    Kindly make a series of DS and Algo.. thanks.

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

    Hi. So what is the difference between this way of auth and the firebase auth? Im watching that series now and it seems that they are having the same result. Witch one is the better one?:)))