Mastering Authentication: React, Node, MongoDB | Login, Signup, Forgot Password, Protected Routes

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2024
  • Mastering Authentication: React, Node, MongoDB | Login, Signup, Logout, Forgot Password and Protected Routes. React + Node + MongoDB: Complete "Authentication" and "Protected Routes". First we will implement "React-Router-Dom" for Routing then we will implement Registration page design and MongoDB configuration with User Model and API with bcrypt for password hashing. After signup we will start coding for Login to design it and write API endpoint with jsonwebtoken implementation to generate a token and store it in cookies for sign in. Moreover we will implement "Forgot and Reset Password" with Nodemailer to send email to user for Resetting password. Finally we will write code for Protected Routes and "Logout" functionality.
    Install MongoDB Locally: • Install MongoDB 6.0.6 ...
    Complete MERN Auth: • Complete MERN Stack Au...
    Bcrypt for Hash and Compare Password: • Hash and Compare Passw...
    JWT (JSONWEBTOKEN) Implementation: • JWT Authentication | M...
    Forgot and Reset Password: • Forgot Password and Re...
    MERN Stack Tutorial: • MERN
    Queries:
    Login and Signup in React and Node.
    Login and Registration using React JS.
    MERN Stack Authentication and Protected Routes.

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

  • @gojovoiceover
    @gojovoiceover 3 หลายเดือนก่อน +4

    thank you bro i will never forgot you in your life in TH-cam

  • @patricioangulo4143
    @patricioangulo4143 3 หลายเดือนก่อน +4

    7:25 npm package
    13:37 react router dom
    25:26 mongoose
    39:44 useNavigate
    48:16 jwt
    1:02:35 nodemailer

  • @alihassanhaji2830
    @alihassanhaji2830 5 หลายเดือนก่อน +2

    I really interested this video of authentication thanks you so much for this wonderful tutorial.

  • @andreavicari2159
    @andreavicari2159 5 หลายเดือนก่อน +1

    Thanks for this wonderful Video
    As soon as I can I will try in a project
    Many thanks 👏👏

  • @alexwaweru19
    @alexwaweru19 3 วันที่ผ่านมา

    This was very helpful, Thank you.

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

    Thanks brother, you helped me a lot !

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

    You helped me a lottt bro. BIG THANKS.

  • @TLTechbender
    @TLTechbender 28 วันที่ผ่านมา

    Thanks Brother, You've helped me a great deal!!!!
    God bless you...

  • @requiemx6038
    @requiemx6038 5 หลายเดือนก่อน +1

    very beneficial thx bro

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

    wow what a great video, keep up

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

    bro you project is very good, it helps me a lot its a good project

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

    You are very good explaining React stuff, i am very gratefull with you. How can i do the deploy of this proyect? Thanks

  • @sabinazeynalova401
    @sabinazeynalova401 2 หลายเดือนก่อน

    thanks for sharing, this helped me a lot)

  • @priyankamohanfanboy7
    @priyankamohanfanboy7 3 หลายเดือนก่อน

    thank you so much brother , really it's more helpful, did using git repository , please it will be more helpful to me

  • @user-op3ff1gv9e
    @user-op3ff1gv9e 5 หลายเดือนก่อน +1

    Nice vodeo

  • @Joel-px2yy
    @Joel-px2yy 4 หลายเดือนก่อน

    Thanks a lot

  • @Dev.ayoujil
    @Dev.ayoujil 5 หลายเดือนก่อน

    Nice

  • @abrahamosahon1137
    @abrahamosahon1137 5 หลายเดือนก่อน

    Thank you

  • @abhijitroy1958
    @abhijitroy1958 2 หลายเดือนก่อน

    give your custom error status too it will be more good, thanks for the video btw

  • @kommushirisha5075
    @kommushirisha5075 5 หลายเดือนก่อน

    Hi, will you make a project for a payment gateway using MERN

  • @chaitanyagbk4251
    @chaitanyagbk4251 5 หลายเดือนก่อน +2

    Great information. Thank you very much for the videos yousaf.
    Do you have a GIT repository?
    If yes can you please share, it actually helps.

  • @Roozikhan565
    @Roozikhan565 5 หลายเดือนก่อน

    ❤❤❤

  • @pedromanuelcamargomendez6520
    @pedromanuelcamargomendez6520 5 หลายเดือนก่อน +1

    Hi, will you make forgot password with OTP. Thank you so much.

  • @RatneshKumar-xv3gr
    @RatneshKumar-xv3gr 5 หลายเดือนก่อน

  • @madathalanithinreddy4594
    @madathalanithinreddy4594 3 หลายเดือนก่อน

    I saw everything is correct still I’m facing error

  • @firefly1887
    @firefly1887 11 วันที่ผ่านมา

    does real world mern project look like this?

  • @goitommahtsentu7624
    @goitommahtsentu7624 3 หลายเดือนก่อน

    in the forgot password the email is not sending and it says in alert (Error sending email) most probably Google Authentication is blocking me. do you have any idea how to fix it? thanks

    • @17-4-4
      @17-4-4 2 หลายเดือนก่อน

      i'm facing this issue. If you have solved it pls let me know.. i'm struggling with that

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

      Yes I am also facing email sending issue any one can tell me please

  • @sarveswarareddyambala6144
    @sarveswarareddyambala6144 3 หลายเดือนก่อน +1

    Hello Sir, Ur Mastering Authentication video is really inspired
    Request failed with status code 404 AxiosError ERR_BAD_REQUEST
    due to this in Post, I am getting 404 (Not Found) then it is not showing data in the database

    • @Rudra-gx3ec
      @Rudra-gx3ec 2 หลายเดือนก่อน

      i an getting the same error ? did your resolve it ?

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

    Thanks bro . now i'm able to get a cookie from backend to frontend . But in frontend I was fetching some data from a E-commerce site . it's now giving me cors policy error between API site and my frontend

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

      Use cors() in back-end to remove this cors policy error

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

      @@nishantmoolya Thankyou buddy . i'm so happy that you helped me . can we connect on any platform like linkedIn and X?

  • @madathalanithinreddy4594
    @madathalanithinreddy4594 3 หลายเดือนก่อน

    37:28 here I’m facing error, and authentication is not showing in mongodb , after I tried to keep login option but the page became totally blank 😢 help me please

    • @codewithyousaf
      @codewithyousaf  3 หลายเดือนก่อน

      check with code
      github.com/YousafKhan1/MERN-Stack/tree/main/Signup%2C%20Login%2C%20Reset%20Password%2C%20Email

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

    I am getting 404 error for " /login" not defined in index.js
    I wrote same code, please help me sir ....

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

      spelling mistake hogi dekho dhyan se bhai

  • @xenon1787
    @xenon1787 2 หลายเดือนก่อน +2

    Please give the GIT link of this tutorial
    I need it urgently

  • @Akash_Raii
    @Akash_Raii 3 หลายเดือนก่อน +1

    Brother Server crashes whenever try to sign up without giving any username email or pw

    • @codewithyousaf
      @codewithyousaf  3 หลายเดือนก่อน

      when server crash check the in terminal the will show you where is the error in server side.

  • @DyNaMiCGaMeRz786
    @DyNaMiCGaMeRz786 3 หลายเดือนก่อน +1

    i want the source code pls

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

    can you share the source code ?

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

    03:00 doesn't look like its working, because it goes to dashboard even you are not logged in.

  • @madathalanithinreddy4594
    @madathalanithinreddy4594 3 หลายเดือนก่อน +4

    When we a getting our first error regarding Cors , after we imported cors but after importing also I’m getting error pls help me

    • @codewithyousaf
      @codewithyousaf  3 หลายเดือนก่อน +1

      after importing cors use it like this
      cors({origin: ["your front-end url"], credential: true})
      front-end
      axios.defaults.withCredentials = true
      watch video carefully you will solve the error I explained.

    • @madathalanithinreddy4594
      @madathalanithinreddy4594 3 หลายเดือนก่อน

      First the authentication is not showing in mongodb

    • @madathalanithinreddy4594
      @madathalanithinreddy4594 3 หลายเดือนก่อน

      37:28 here I’m facing error, and authentication is not showing in mongodb , after I tried to keep login option but the page became totally blank 😢 help me please

  • @vishalprasad8460
    @vishalprasad8460 3 หลายเดือนก่อน

    Source code?

  • @user-cu5ju2rj6r
    @user-cu5ju2rj6r 3 หลายเดือนก่อน

    Please uplaod source code .

  • @PrinceKumar-pb9xk
    @PrinceKumar-pb9xk 5 หลายเดือนก่อน

    Please provide github repo of this project

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

      github.com/YousafKhan1/MERN-Stack/tree/main/Signup%2C%20Login%2C%20Reset%20Password%2C%20Email

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

    Login not working

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

      What is the error?

  • @saikumar7247
    @saikumar7247 5 หลายเดือนก่อน

    could u provide github link

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

      github.com/YousafKhan1/MERN-Stack/tree/main/Signup%2C%20Login%2C%20Reset%20Password%2C%20Email

  • @sareh8091
    @sareh8091 2 หลายเดือนก่อน +1

    please provide the git source code !!! It will help too

  • @user-tk4jh4cw3x
    @user-tk4jh4cw3x 5 หลายเดือนก่อน

    sound not so clear bro

  • @RatneshKumar-xv3gr
    @RatneshKumar-xv3gr 5 หลายเดือนก่อน