No video

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

  Рет қаралды 43,775

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.

Пікірлер: 72
@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
@gojovoiceover
@gojovoiceover 5 ай бұрын
thank you bro i will never forgot you in your life in KZbin
@andreavicari2159
@andreavicari2159 6 ай бұрын
Thanks for this wonderful Video As soon as I can I will try in a project Many thanks 👏👏
@alihassanhaji2830
@alihassanhaji2830 6 ай бұрын
I really interested this video of authentication thanks you so much for this wonderful tutorial.
@TLTechbender
@TLTechbender 2 ай бұрын
Thanks Brother, You've helped me a great deal!!!! God bless you...
@alexwaweru19
@alexwaweru19 Ай бұрын
This was very helpful, Thank you.
@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
@lavkeshprasad7040
@lavkeshprasad7040 3 ай бұрын
bro you project is very good, it helps me a lot its a good project
@deltonguivala4888
@deltonguivala4888 3 ай бұрын
You helped me a lottt bro. BIG THANKS.
@gauravpanta5464
@gauravpanta5464 6 ай бұрын
Thanks brother, you helped me a lot !
@requiemx6038
@requiemx6038 6 ай бұрын
very beneficial thx bro
@abhijitroy1958
@abhijitroy1958 4 ай бұрын
give your custom error status too it will be more good, thanks for the video btw
@FaridDiraf-l1b
@FaridDiraf-l1b 3 күн бұрын
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 2 күн бұрын
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 2 күн бұрын
@@codewithyousaf I see, I'll try again. Thanks for getting back to me👍
@gabrielkingori3375
@gabrielkingori3375 6 ай бұрын
wow what a great video, keep up
@chaitanyagbk4251
@chaitanyagbk4251 6 ай бұрын
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 6 ай бұрын
I will share
@flash0p
@flash0p 26 күн бұрын
great tutorial
@sabinazeynalova401
@sabinazeynalova401 4 ай бұрын
thanks for sharing, this helped me a lot)
@user-op3ff1gv9e
@user-op3ff1gv9e 6 ай бұрын
Nice vodeo
@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
@ruqayahn.k4645
@ruqayahn.k4645 Ай бұрын
thank you 🌹
@avinashkumargupta8556
@avinashkumargupta8556 20 күн бұрын
How are you checking the token is correct or not what's the flow ? token generated --> sent to frontend --> then what ????
@madathalanithinreddy4594
@madathalanithinreddy4594 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
First the authentication is not showing in mongodb
@madathalanithinreddy4594
@madathalanithinreddy4594 5 ай бұрын
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
@sarveswarareddyambala6144
@sarveswarareddyambala6144 4 ай бұрын
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 ?
@Joel-px2yy
@Joel-px2yy 5 ай бұрын
Thanks a lot
@Dev.ayoujil
@Dev.ayoujil 6 ай бұрын
Nice
@abrahamosahon1137
@abrahamosahon1137 6 ай бұрын
Thank you
@pedromanuelcamargomendez6520
@pedromanuelcamargomendez6520 6 ай бұрын
Hi, will you make forgot password with OTP. Thank you so much.
@bhupenderkumar9508
@bhupenderkumar9508 6 ай бұрын
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 6 ай бұрын
Use cors() in back-end to remove this cors policy error
@bhupenderkumar9508
@bhupenderkumar9508 6 ай бұрын
@@nishantmoolya Thankyou buddy . i'm so happy that you helped me . can we connect on any platform like linkedIn and X?
@zoki5388
@zoki5388 6 ай бұрын
03:00 doesn't look like its working, because it goes to dashboard even you are not logged in.
@supriyachatterjee3183
@supriyachatterjee3183 5 ай бұрын
yes
@Roozikhan565
@Roozikhan565 6 ай бұрын
❤❤❤
@kommushirisha5075
@kommushirisha5075 6 ай бұрын
Hi, will you make a project for a payment gateway using MERN
@RatneshKumar-xv3gr
@RatneshKumar-xv3gr 6 ай бұрын
@Akash_Raii
@Akash_Raii 4 ай бұрын
Brother Server crashes whenever try to sign up without giving any username email or pw
@codewithyousaf
@codewithyousaf 4 ай бұрын
when server crash check the in terminal the will show you where is the error in server side.
@firefly1887
@firefly1887 Ай бұрын
does real world mern project look like this?
@madathalanithinreddy4594
@madathalanithinreddy4594 5 ай бұрын
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 5 ай бұрын
check with code github.com/YousafKhan1/MERN-Stack/tree/main/Signup%2C%20Login%2C%20Reset%20Password%2C%20Email
@madathalanithinreddy4594
@madathalanithinreddy4594 5 ай бұрын
I saw everything is correct still I’m facing error
@xenon1787
@xenon1787 4 ай бұрын
Please give the GIT link of this tutorial I need it urgently
@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 5 ай бұрын
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 3 ай бұрын
i'm facing this issue. If you have solved it pls let me know.. i'm struggling with that
@nagasai8478
@nagasai8478 2 ай бұрын
Yes I am also facing email sending issue any one can tell me please
@DyNaMiCGaMeRz786
@DyNaMiCGaMeRz786 5 ай бұрын
i want the source code pls
@VivekKumar-qx1dv
@VivekKumar-qx1dv 20 сағат бұрын
please provied code source
@damilareoladele1309
@damilareoladele1309 5 ай бұрын
Login not working
@gameofhector
@gameofhector 5 ай бұрын
What is the error?
@chickendinner120
@chickendinner120 5 ай бұрын
can you share the source code ?
@vishalprasad8460
@vishalprasad8460 5 ай бұрын
Source code?
@user-cu5ju2rj6r
@user-cu5ju2rj6r 5 ай бұрын
Please uplaod source code .
@user-tk4jh4cw3x
@user-tk4jh4cw3x 6 ай бұрын
sound not so clear bro
@codewithyousaf
@codewithyousaf 6 ай бұрын
Sorry 😥
@PrinceKumar-pb9xk
@PrinceKumar-pb9xk 6 ай бұрын
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
@saikumar7247
@saikumar7247 6 ай бұрын
could u provide github link
@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
@chikay2023
@chikay2023 Ай бұрын
1:13:00 I only see white page after clicking the link error from console: No routes matched location "/resetpassword/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2OGQ0MzVmMmIxMGM3MTBmOTljZGEzZSIsImlhdCI6MTcyMDUzNTM2MCwiZXhwIjoxNzIwNTM1NjYwfQ.tRpPppx9d4GTtN8W37oNPrsUQxhDwQgoAJgDyO9fDM0"
@RatneshKumar-xv3gr
@RatneshKumar-xv3gr 6 ай бұрын
Build & Deploy a MODERN Contact Manager with MERN Stack
2:01:37
Code With Yousaf
Рет қаралды 6 М.
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 26 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 19 МЛН
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 159 М.
Build a Fullstack Login & Register Page with MERN (react.js, mongo, express, bcrypt, jwt & more)
1:50:04
Auth Does NOT Have To Be Hard
17:13
Web Dev Simplified
Рет қаралды 97 М.
Master React & Node: Build a Full Employee Management System! (part 1)
3:15:42
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 122 М.
FastAPI JWT Tutorial | How to add User Authentication
20:27
Eric Roby
Рет қаралды 50 М.
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН