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

Поделиться
HTML-код
  • Опубликовано: 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.

Комментарии • 62

  • @gojovoiceover
    @gojovoiceover 2 месяца назад +4

    thank you bro i will never forgot you in your life in RUclips

  • @andreavicari2159
    @andreavicari2159 4 месяца назад +1

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

  • @alihassanhaji2830
    @alihassanhaji2830 4 месяца назад +2

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

  • @deltonguivala4888
    @deltonguivala4888 25 дней назад

    You helped me a lottt bro. BIG THANKS.

  • @gauravpanta5464
    @gauravpanta5464 3 месяца назад

    Thanks brother, you helped me a lot !

  • @TLTechbender
    @TLTechbender День назад

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

  • @lavkeshprasad7040
    @lavkeshprasad7040 28 дней назад

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

  • @requiemx6038
    @requiemx6038 4 месяца назад +1

    very beneficial thx bro

  • @patricioangulo4143
    @patricioangulo4143 2 месяца назад +3

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

  • @victormurcio8845
    @victormurcio8845 3 месяца назад +1

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

  • @gabrielkingori3375
    @gabrielkingori3375 3 месяца назад

    wow what a great video, keep up

  • @sabinazeynalova401
    @sabinazeynalova401 Месяц назад

    thanks for sharing, this helped me a lot)

  • @priyankamohanfanboy7
    @priyankamohanfanboy7 2 месяца назад

    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 4 месяца назад +1

    Nice vodeo

  • @abhijitroy1958
    @abhijitroy1958 Месяц назад

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

  • @Dev.ayoujil
    @Dev.ayoujil 4 месяца назад

    Nice

  • @abrahamosahon1137
    @abrahamosahon1137 4 месяца назад

    Thank you

  • @Joel-px2yy
    @Joel-px2yy 3 месяца назад

    Thanks a lot

  • @chaitanyagbk4251
    @chaitanyagbk4251 4 месяца назад +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.

  • @kommushirisha5075
    @kommushirisha5075 4 месяца назад

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

  • @xenon1787
    @xenon1787 Месяц назад +2

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

  • @pedromanuelcamargomendez6520
    @pedromanuelcamargomendez6520 4 месяца назад +1

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

  • @Roozikhan565
    @Roozikhan565 4 месяца назад

    ❤❤❤

  • @RatneshKumar-xv3gr
    @RatneshKumar-xv3gr 4 месяца назад

  • @madathalanithinreddy4594
    @madathalanithinreddy4594 2 месяца назад

    I saw everything is correct still I’m facing error

  • @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 3 месяца назад +1

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

    • @bhupenderkumar9508
      @bhupenderkumar9508 3 месяца назад

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

  • @sarveswarareddyambala6144
    @sarveswarareddyambala6144 2 месяца назад +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 Месяц назад

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

  • @goitommahtsentu7624
    @goitommahtsentu7624 2 месяца назад

    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 Месяц назад

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

    • @nagasai8478
      @nagasai8478 9 дней назад

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

  • @madathalanithinreddy4594
    @madathalanithinreddy4594 2 месяца назад

    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  2 месяца назад

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

  • @successfinder8062
    @successfinder8062 3 месяца назад

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

    • @faisalbaig5941
      @faisalbaig5941 3 месяца назад

      spelling mistake hogi dekho dhyan se bhai

  • @sareh8091
    @sareh8091 Месяц назад +1

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

  • @zoki5388
    @zoki5388 3 месяца назад

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

  • @Akash_Raii
    @Akash_Raii 2 месяца назад +1

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

    • @codewithyousaf
      @codewithyousaf  2 месяца назад

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

  • @madathalanithinreddy4594
    @madathalanithinreddy4594 3 месяца назад +3

    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 2 месяца назад

      First the authentication is not showing in mongodb

    • @madathalanithinreddy4594
      @madathalanithinreddy4594 2 месяца назад

      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

  • @chickendinner120
    @chickendinner120 3 месяца назад

    can you share the source code ?

  • @damilareoladele1309
    @damilareoladele1309 3 месяца назад +1

    Login not working

  • @PrinceKumar-pb9xk
    @PrinceKumar-pb9xk 4 месяца назад

    Please provide github repo of this project

    • @codewithyousaf
      @codewithyousaf  3 месяца назад

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

  • @DyNaMiCGaMeRz786
    @DyNaMiCGaMeRz786 2 месяца назад

    i want the source code pls

  • @vishalprasad8460
    @vishalprasad8460 2 месяца назад

    Source code?

  • @user-cu5ju2rj6r
    @user-cu5ju2rj6r 2 месяца назад

    Please uplaod source code .

  • @saikumar7247
    @saikumar7247 4 месяца назад

    could u provide github link

    • @codewithyousaf
      @codewithyousaf  3 месяца назад +1

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

  • @user-tk4jh4cw3x
    @user-tk4jh4cw3x 4 месяца назад

    sound not so clear bro

  • @RatneshKumar-xv3gr
    @RatneshKumar-xv3gr 4 месяца назад