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

  Рет қаралды 46,613

Code With Yousaf

Code With Yousaf

Күн бұрын

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.

Пікірлер: 76
@gojovoiceover
@gojovoiceover 5 ай бұрын
thank you bro i will never forgot you in your life in KZbin
@patricioangulo4143
@patricioangulo4143 5 ай бұрын
7:25 npm package 13:37 react router dom 25:26 mongoose 39:44 useNavigate 48:16 jwt 1:02:35 nodemailer
@alihassanhaji2830
@alihassanhaji2830 7 ай бұрын
I really interested this video of authentication thanks you so much for this wonderful tutorial.
@andreavicari2159
@andreavicari2159 7 ай бұрын
Thanks for this wonderful Video As soon as I can I will try in a project Many thanks 👏👏
@TLTechbender
@TLTechbender 3 ай бұрын
Thanks Brother, You've helped me a great deal!!!! God bless you...
@suucartoon5427
@suucartoon5427 19 күн бұрын
tnx so much for this worderfull tutorial😊
@alexwaweru19
@alexwaweru19 2 ай бұрын
This was very helpful, Thank you.
@deltonguivala4888
@deltonguivala4888 3 ай бұрын
You helped me a lottt bro. BIG THANKS.
@lavkeshprasad7040
@lavkeshprasad7040 4 ай бұрын
bro you project is very good, it helps me a lot its a good project
@victormurcio8845
@victormurcio8845 6 ай бұрын
You are very good explaining React stuff, i am very gratefull with you. How can i do the deploy of this proyect? Thanks
@gauravpanta5464
@gauravpanta5464 7 ай бұрын
Thanks brother, you helped me a lot !
@priyankamohanfanboy7
@priyankamohanfanboy7 5 ай бұрын
thank you so much brother , really it's more helpful, did using git repository , please it will be more helpful to me
@requiemx6038
@requiemx6038 7 ай бұрын
very beneficial thx bro
@abhijitroy1958
@abhijitroy1958 4 ай бұрын
give your custom error status too it will be more good, thanks for the video btw
@sabinazeynalova401
@sabinazeynalova401 4 ай бұрын
thanks for sharing, this helped me a lot)
@avinashkumargupta8556
@avinashkumargupta8556 Ай бұрын
How are you checking the token is correct or not what's the flow ? token generated --> sent to frontend --> then what ????
@gabrielkingori3375
@gabrielkingori3375 6 ай бұрын
wow what a great video, keep up
@chaitanyagbk4251
@chaitanyagbk4251 7 ай бұрын
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.
@codewithyousaf
@codewithyousaf 7 ай бұрын
I will share
@flash0p
@flash0p Ай бұрын
great tutorial
@ruqayahn.k4645
@ruqayahn.k4645 Ай бұрын
thank you 🌹
@user-op3ff1gv9e
@user-op3ff1gv9e 7 ай бұрын
Nice vodeo
@abrahamosahon1137
@abrahamosahon1137 7 ай бұрын
Thank you
@FaridDiraf-l1b
@FaridDiraf-l1b 22 күн бұрын
Hi Yousaf, greetings from Azerbaijan, thanks for an exceptional tutorial first. And second, when trying to set up nodemailer, I can't go to App passwords, After entering 2 Step verification, it wants me to provide a phone number to turn it on. But no matter what I type, it always says 'Something went wrong'. Why and how can I fix this?
@codewithyousaf
@codewithyousaf 22 күн бұрын
maybe some phone numbers are not acceptable like in Pakistan sometimes it's not working we use Telenor for that. just ask we it happen in azerbyjan
@FaridDiraf-l1b
@FaridDiraf-l1b 21 күн бұрын
@@codewithyousaf I see, I'll try again. Thanks for getting back to me👍
@CyberDev_Ayoujil
@CyberDev_Ayoujil 7 ай бұрын
Nice
@mayursoni2838
@mayursoni2838 13 күн бұрын
i am facing error in the code even i write exact same code
@pedromanuelcamargomendez6520
@pedromanuelcamargomendez6520 7 ай бұрын
Hi, will you make forgot password with OTP. Thank you so much.
@sarveswarareddyambala6144
@sarveswarareddyambala6144 5 ай бұрын
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 4 ай бұрын
i an getting the same error ? did your resolve it ?
@madathalanithinreddy4594
@madathalanithinreddy4594 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
First the authentication is not showing in mongodb
@madathalanithinreddy4594
@madathalanithinreddy4594 6 ай бұрын
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
@Roozikhan565
@Roozikhan565 7 ай бұрын
❤❤❤
@RatneshKumar-xv3gr
@RatneshKumar-xv3gr 7 ай бұрын
@chikay2023
@chikay2023 2 ай бұрын
1:13:00 I only see white page after clicking the link error from console: No routes matched location "/resetpassword/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2OGQ0MzVmMmIxMGM3MTBmOTljZGEzZSIsImlhdCI6MTcyMDUzNTM2MCwiZXhwIjoxNzIwNTM1NjYwfQ.tRpPppx9d4GTtN8W37oNPrsUQxhDwQgoAJgDyO9fDM0"
@zoki5388
@zoki5388 6 ай бұрын
03:00 doesn't look like its working, because it goes to dashboard even you are not logged in.
@supriyachatterjee3183
@supriyachatterjee3183 6 ай бұрын
yes
@kommushirisha5075
@kommushirisha5075 7 ай бұрын
Hi, will you make a project for a payment gateway using MERN
@firefly1887
@firefly1887 2 ай бұрын
does real world mern project look like this?
@xenon1787
@xenon1787 5 ай бұрын
Please give the GIT link of this tutorial I need it urgently
@bhupenderkumar9508
@bhupenderkumar9508 7 ай бұрын
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 7 ай бұрын
Use cors() in back-end to remove this cors policy error
@bhupenderkumar9508
@bhupenderkumar9508 7 ай бұрын
@@nishantmoolya Thankyou buddy . i'm so happy that you helped me . can we connect on any platform like linkedIn and X?
@Akash_Raii
@Akash_Raii 5 ай бұрын
Brother Server crashes whenever try to sign up without giving any username email or pw
@codewithyousaf
@codewithyousaf 5 ай бұрын
when server crash check the in terminal the will show you where is the error in server side.
@madathalanithinreddy4594
@madathalanithinreddy4594 6 ай бұрын
I saw everything is correct still I’m facing error
@madathalanithinreddy4594
@madathalanithinreddy4594 6 ай бұрын
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 6 ай бұрын
check with code github.com/YousafKhan1/MERN-Stack/tree/main/Signup%2C%20Login%2C%20Reset%20Password%2C%20Email
@lovindigital
@lovindigital 4 күн бұрын
link repo github sir?
@DyNaMiCGaMeRz786
@DyNaMiCGaMeRz786 6 ай бұрын
i want the source code pls
@successfinder8062
@successfinder8062 6 ай бұрын
I am getting 404 error for " /login" not defined in index.js I wrote same code, please help me sir ....
@faisalbaig5941
@faisalbaig5941 6 ай бұрын
spelling mistake hogi dekho dhyan se bhai
@goitommahtsentu7624
@goitommahtsentu7624 5 ай бұрын
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 4 ай бұрын
i'm facing this issue. If you have solved it pls let me know.. i'm struggling with that
@nagasai8478
@nagasai8478 3 ай бұрын
Yes I am also facing email sending issue any one can tell me please
@mayursoni2838
@mayursoni2838 13 күн бұрын
it will be very helpful if someone can provide me code
@damilareoladele1309
@damilareoladele1309 6 ай бұрын
Login not working
@gameofhector
@gameofhector 6 ай бұрын
What is the error?
@chickendinner120
@chickendinner120 6 ай бұрын
can you share the source code ?
@user-cu5ju2rj6r
@user-cu5ju2rj6r 5 ай бұрын
Please uplaod source code .
@vishalprasad8460
@vishalprasad8460 5 ай бұрын
Source code?
@PrinceKumar-pb9xk
@PrinceKumar-pb9xk 7 ай бұрын
Please provide github repo of this project
@codewithyousaf
@codewithyousaf 6 ай бұрын
github.com/YousafKhan1/MERN-Stack/tree/main/Signup%2C%20Login%2C%20Reset%20Password%2C%20Email
@sareh8091
@sareh8091 4 ай бұрын
please provide the git source code !!! It will help too
@user-tk4jh4cw3x
@user-tk4jh4cw3x 7 ай бұрын
sound not so clear bro
@codewithyousaf
@codewithyousaf 7 ай бұрын
Sorry 😥
@saikumar7247
@saikumar7247 7 ай бұрын
could u provide github link
@codewithyousaf
@codewithyousaf 6 ай бұрын
github.com/YousafKhan1/MERN-Stack/tree/main/Signup%2C%20Login%2C%20Reset%20Password%2C%20Email
@VivekKumar-qx1dv
@VivekKumar-qx1dv 20 күн бұрын
please provied code source
@Joel-px2yy
@Joel-px2yy 6 ай бұрын
Thanks a lot
@RatneshKumar-xv3gr
@RatneshKumar-xv3gr 7 ай бұрын
Build & Deploy a MODERN Contact Manager with MERN Stack
2:01:37
Code With Yousaf
Рет қаралды 6 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 43 МЛН
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 6 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН
Building Node.js Authentication from Scratch
39:09
Piyush Garg
Рет қаралды 152 М.
We built the Biggest iPhone in the World.
23:30
Mrwhosetheboss
Рет қаралды 3,4 МЛН
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 57 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 43 МЛН