Email Account Verification In Node JS & React JS | MERN Stack Project

  Рет қаралды 74,265

CyberWolves

CyberWolves

Күн бұрын

Пікірлер: 117
@maxralph01
@maxralph01 Жыл бұрын
You always go straight to the point. I always enjoy the blog thing you used to do. You could add it to this as well. Those blogs from the past were really helpful. Amazing !
@shadullahsad9700
@shadullahsad9700 2 ай бұрын
Thanks a bunch.. solved all the errors.. and works perfectly now.. thank you thank you
@JohnDismar
@JohnDismar Жыл бұрын
Great Job CyberWolves, it is working well! Thank you so much for your tutorial ❤
@Justvics
@Justvics Жыл бұрын
how, mine isn't working
@grenstack
@grenstack Жыл бұрын
mine isnt working
@usmanshahid8529
@usmanshahid8529 2 жыл бұрын
I have done something like this before ,i saved the token in the redis cache memory and set expiry to 1 hour and then check the link with redis token ..i dont want to save token in mongodb ,it was hard for me to do this because there are few people who is telling about that ,,😊 i will try that way too ❤️
@Ytrajpoot
@Ytrajpoot 2 жыл бұрын
but by this method you have more controll on verification
@usmanshahid8529
@usmanshahid8529 2 жыл бұрын
@@Ytrajpoot its more efficient way to handle code because by this you can expire it ,but in mongodb it hard ....
@Ytrajpoot
@Ytrajpoot 2 жыл бұрын
@@usmanshahid8529 sure
@kalashvasaniya1
@kalashvasaniya1 Жыл бұрын
Bro you are GOD no one can explain this process that simply!
@TECHWITHNIZER
@TECHWITHNIZER 6 ай бұрын
do not compare God broo even if am a sinner
@somyagupta7471
@somyagupta7471 Жыл бұрын
Wow this video is very helpful for me... Thankyou so much ❤❤
@MMAGO1
@MMAGO1 2 жыл бұрын
King CyberWolf!
@santoshbhat-lo6rz
@santoshbhat-lo6rz Жыл бұрын
Amazing tutorial.Given source code is helpfull
@rockbelleh6237
@rockbelleh6237 2 жыл бұрын
Indeed this is a great work.I appreciate u alot sir.tnks and God bless
@1cppython
@1cppython Жыл бұрын
good job ..great explanation
@greythirdeye1714
@greythirdeye1714 2 жыл бұрын
I have existing reactjs project maam has told to add login in and registration page , sir how should i integrate this so that once i regiater and login than my desktop application would open as homepage ... Please please please help me #🙏
@riteshgsh
@riteshgsh 2 жыл бұрын
In jwt auth use a Middleware, that checks for a refresh token, if it's present and valid, then show that user's details by simply passing the decoded payload of the jwt refresh token onto the endpoint from the middleware
@MultiTrickster121
@MultiTrickster121 Жыл бұрын
Thanks, super helpful! Here's a like :)
@frenkie1281
@frenkie1281 Жыл бұрын
I’m not receiving any email I followed this completely. Am I doing something wrong?
@mominasim4035
@mominasim4035 8 ай бұрын
same
@jsaugat_
@jsaugat_ 5 ай бұрын
appreciate the content, i got a feedback though: the bg music is too annoying
@life-lessonn.
@life-lessonn. 10 ай бұрын
Not any mail come why after Register ?
@rozumyratatamuradow8565
@rozumyratatamuradow8565 2 жыл бұрын
Why do you cannot save token in hash? When I do this I send verify link your created token but save it create with hash
@janine8413
@janine8413 Жыл бұрын
you are amazing ❤
@usamaay7907
@usamaay7907 2 жыл бұрын
after getting email and clicking on it, 404 page not found error occurs, Please help me
@kimmotech
@kimmotech Жыл бұрын
I get the same error
@martinonic6625
@martinonic6625 4 ай бұрын
@@kimmotechsend me the repo
@raphaelandrade5281
@raphaelandrade5281 2 жыл бұрын
Next time do a video without music. Thank you for the video
@ARNABPRATIHAR-df4tw
@ARNABPRATIHAR-df4tw Ай бұрын
Email verification process is so easy but background music so problematic🤔🤔
@ibrahimirwin6568
@ibrahimirwin6568 2 жыл бұрын
I need your reply sir, why when I run my code (npm start (in client folder)) why won't the form show up?
@marioskaldellis3669
@marioskaldellis3669 Жыл бұрын
Everything works fine, but when i try to signup second user, i cannot. When i press to the verification link it says not found.
@destamy
@destamy 10 ай бұрын
Yeah me too.. the system says internal server error lol 😂
@saurabhpandey6318
@saurabhpandey6318 Жыл бұрын
its not working correctly email link are not open router to varify email can anyone please check out...
@alicjajot7577
@alicjajot7577 Жыл бұрын
'await token.remove()' in routes/users causes the token to be removed and a '404 not found' page error.
@WebDev-wi3ui
@WebDev-wi3ui 8 ай бұрын
Thank god you saved me I wont forget this Really I'm trying it for past 2 hrs and finally i found your comment await token.remove() just remove this line the code works
@tesourodosceus
@tesourodosceus 2 жыл бұрын
Good night. I've done your two tutorials and appeared the error "Internal Server Error" either writing step by step or cloning ... What could it be? Grateful! Congratulations on your work.
@CyberW0lves
@CyberW0lves 2 жыл бұрын
Thank you, console log error see what is the error in command prompt.
@MMAGO1
@MMAGO1 2 жыл бұрын
I had the same error, but It was my own fault. I had a semicolon at the end of my mongodb connection string..
@UrduPoetry-vd1mc
@UrduPoetry-vd1mc Жыл бұрын
user curly braces after each if statement like (!user){res.status(409).send()} this way and your code will work perfectly!
@saurabhpandey6318
@saurabhpandey6318 Жыл бұрын
Can any solve iisu getting verify and instant getting 404 error and not verified email
@pranaykharabe7137
@pranaykharabe7137 2 жыл бұрын
Loved your video 😍. But I'm getting 404 error while verifying the email. I checked the network tab so it's showing status code 500. Can you please guide me on this. Thanks for this great tutorial ❤!
@mudassarali7462
@mudassarali7462 2 жыл бұрын
it's because of useEffect dependency array. It re-renders component infinite times so when email is verified temp token become empty and we are throwing error from backend.
@alicjajot7577
@alicjajot7577 Жыл бұрын
​@@mudassarali7462Hi! Do you know how to solve it? I have the same problem with error 404
@abelalejandroacunacoronado4549
@abelalejandroacunacoronado4549 2 жыл бұрын
Im having problems with verify pages, i dont know how to do flow information. When i click url verify that i get from email how this page conect with my front , i tried but i got 2 things, i got verify but i got a 404 in my screen
@kailashbhujel7777
@kailashbhujel7777 2 жыл бұрын
same thing happening to me
@usamaay7907
@usamaay7907 2 жыл бұрын
@@kailashbhujel7777 hey do you found the error
@kailashbhujel7777
@kailashbhujel7777 2 жыл бұрын
@@usamaay7907 yes I had a problem with my route path function
@Djoako22
@Djoako22 2 жыл бұрын
Thank you!❤
@lukasmacku2423
@lukasmacku2423 Жыл бұрын
Hello :), Do you know how to make the expireDate in PRISMA orm???
@saurabhband2354
@saurabhband2354 2 жыл бұрын
Thank U 💕
@mikha2880
@mikha2880 2 жыл бұрын
whoaa thankyou sir!
@fahadkazmi5115
@fahadkazmi5115 2 жыл бұрын
kindly tell how to connect mongodb compass with this system please tell the procedure
@CyberW0lves
@CyberW0lves 2 жыл бұрын
1) Install mongodb compass 2) In new connnection tab click on connect. it will run on localhost with certain port. 3) add your url mongodb://127.0.0.1:{port} in mongodb.connect method. :)
@ruthvijrane8647
@ruthvijrane8647 5 ай бұрын
Can anyone help me for deployment of these code I am using vercel but bot able to deploy it
@devfanor3536
@devfanor3536 2 жыл бұрын
Que grande eres!!!
@quanduong3390
@quanduong3390 Жыл бұрын
thank you so much
@kailashbhujel7777
@kailashbhujel7777 2 жыл бұрын
I'm having problems with verifying pages. I tried but I got 2 things, I got verified but immediately I got a error '404 not found' on my screen.
@Ytrajpoot
@Ytrajpoot 2 жыл бұрын
something wrong in your route path function
@kimmotech
@kimmotech Жыл бұрын
I solved this by Replacing: const verifyToken = await new VerificationToken({ userId: user._id, token: crypto.randomBytes(32).toString('hex'), }).save(); const url = `${process.env.BASE_URL}/${user._id}/verify/${verifyToken.token}`; With: const verifyToken = await new VerificationToken({ userId: user._id, token: crypto.randomBytes(32).toString('hex'), }).save(); const url = `${process.env.BASE_URL}/${verifyToken.userId}/verify/${verifyToken.token}`; In the url
@muhammedjaseem3882
@muhammedjaseem3882 11 ай бұрын
@@kimmotech Hi can you share your github code repo link.I am having same trouble
@wisdomelue
@wisdomelue 2 жыл бұрын
what is being used to redirect the user to your custom page?
@zaynedit786
@zaynedit786 2 жыл бұрын
useNavigation hook
@jomariosacia9907
@jomariosacia9907 Жыл бұрын
It said token.remove() is not a function
@trpmusicvideocreator6103
@trpmusicvideocreator6103 2 жыл бұрын
Awesome 🙏🙏
@milgraph115
@milgraph115 Жыл бұрын
can I use this for production?
@Dip-d9l
@Dip-d9l Жыл бұрын
Bro please help me. How to get JWTPRIVARKEY
@ismahenabdallah2188
@ismahenabdallah2188 2 жыл бұрын
good night , i followed all the steps , but i can register without verifying with email and verified:true not matche help me please
@Ytrajpoot
@Ytrajpoot 2 жыл бұрын
you check it by if condition if(verified){}
@nikhilab337
@nikhilab337 2 жыл бұрын
Hi, I'm getting link to verify email address however when i click on that link it says this site can't be reached and also on console im getting error : post 400 (bad request) .. Kindly help me
@zureka3242
@zureka3242 2 жыл бұрын
Hi, just change the validUrl to true by default in EmailVerify and you are good to go!!
@piyushapatil670
@piyushapatil670 2 жыл бұрын
@@zureka3242 didnt work for me
@Chris-ti1ll
@Chris-ti1ll 2 жыл бұрын
There is an error on the server side Path : server/routes/user.js Error is on line 52 : wait User.updateOne({ _id: user._id, verified: true }); Fix it by putting a bracket: await User.updateOne({ _id: user._id}, {verified: true});
@pranaykharabe7137
@pranaykharabe7137 2 жыл бұрын
@@Chris-ti1ll it's not *wait* , it's *await User.updateOne({ _id: user._id, verified: true });*
@usamaay7907
@usamaay7907 2 жыл бұрын
hey do you found the solution?
@MohamedAli-vf3vy
@MohamedAli-vf3vy Жыл бұрын
I dont know what file to run HELP!
@SRINIJADESHPEDDI
@SRINIJADESHPEDDI Күн бұрын
how to run this
@Motivational_talks
@Motivational_talks 7 ай бұрын
so is this is valid for all the email
@tiffanyg7068
@tiffanyg7068 2 жыл бұрын
Im getting an error with the link..its showing the 404 Not Found Error but when inspecting it, I'm seeing Network Error and Cross-Origin Request Blocked Reason: CORS request did not succeed..any help??
@Ytrajpoot
@Ytrajpoot 2 жыл бұрын
try cors middleware
@muhammedjaseem3882
@muhammedjaseem3882 11 ай бұрын
hey did you solve this problem.Canyou share the gihub repo link
@muhammedjaseem3882
@muhammedjaseem3882 11 ай бұрын
​@@Ytrajpoot can you share your github repo link.so i can compare solve this issue
@ikhlasaralbaev
@ikhlasaralbaev 2 жыл бұрын
super!
@rkvbuzz9244
@rkvbuzz9244 2 жыл бұрын
Bro How to deploy pls make a video🙏
@jason9468
@jason9468 2 жыл бұрын
Great tutorial! I have a question regarding the verification link. What is supposed to happen to it once it expires? I set my token model to expire at 30 seconds to test it out, but the link still works after 30 seconds and still redirects the user to the EmailVerify screen. What should be the correct outcome if they click an expired link?
@rockbelleh6237
@rockbelleh6237 2 жыл бұрын
Nice question still waiting for this response
@lunarcdr3083
@lunarcdr3083 Жыл бұрын
My logic would say to setup a check to see if the link has been used already, if so than return a response with the message that the link is invalid/expired.
@jason9468
@jason9468 Жыл бұрын
@@lunarcdr3083 thanks for the response! Would this logic be set up in the backend, or is it more of a frontend task where I would create a conditional statement checking if the link was previously clicked on?
@lunarcdr3083
@lunarcdr3083 Жыл бұрын
@@jason9468 Np. In the backend, returning an err as a response to the frontend.
@muhammedjaseem3882
@muhammedjaseem3882 11 ай бұрын
@jason9468 I am having trouble when user clicks the link.I gives cannot get 123213/verify/567567 - 404. Can youprovide your github repo link so that i can use your code to troubleshoot my code
@astb01
@astb01 2 жыл бұрын
Maybe don’t use background music it can be off putting
@tainkhantaibkhan1336
@tainkhantaibkhan1336 8 ай бұрын
Missing .env file
@moralstories926
@moralstories926 Ай бұрын
Suggested by Chat GPT. 👍
@localhub3789
@localhub3789 Жыл бұрын
disliked due to you didn't test it . 2 hours wasted
@rashedulalam7754
@rashedulalam7754 2 жыл бұрын
Nothing showing
@CyberW0lves
@CyberW0lves 2 жыл бұрын
What kind of error you are getting on console?
@worldbest3097
@worldbest3097 9 ай бұрын
might be late though, for those who are having some problom with twice api called i mean( email verified and then, 404 not found), 1) first of all, in frontside , delete "param" dependency array in useeffect 2) and, in backend add if (user.verified) { return res .status(200) .send({ message: "Email already verified successfully" }); }
@worldbest3097
@worldbest3097 9 ай бұрын
if dont want to delete param, then just do 2) option. 404 not found shown because already token is deleted even though user is verified
@vishalmyla6276
@vishalmyla6276 Жыл бұрын
Agar test nahi karte toh vedio mat bana
@saurabhpandey6318
@saurabhpandey6318 Жыл бұрын
??
@md.dilshadulislam9113
@md.dilshadulislam9113 Жыл бұрын
bruh, why so cringe.. drop the music
@ansabali441
@ansabali441 2 жыл бұрын
getting error, not sending the email......kindly guide........... Invalid login: 535-5.7.8 Username and Password not accepted
@CyberW0lves
@CyberW0lves 2 жыл бұрын
Sorry I forgot to mention. In order to connect Gmail account with nodemailer. You need to turn off 2 step verification and turn on allow less secure apps.
@nikhilab337
@nikhilab337 2 жыл бұрын
Even I was getting same error i did what u said later i ended up with this error *failed to load resource the server responded with a status of 400 (bad request) * kindly help me
@ansabali441
@ansabali441 2 жыл бұрын
@@CyberW0lves thanks brother. I resolve this.
@ansabali441
@ansabali441 2 жыл бұрын
@@nikhilab337 follow the above steps. Your problem will be resolve
@nikhilab337
@nikhilab337 2 жыл бұрын
@ansab ali i tried the above steps now still getting 400 (bad request)
@CodingWithDilip
@CodingWithDilip 2 жыл бұрын
got small mistake in your code server/routes/users.js - line 53 error: await User.updateOne({ _id: user._id, verified: true }); fix: await User.updateOne({ _id: user._id }, { verified: true }); thank you for the video
@CyberW0lves
@CyberW0lves 2 жыл бұрын
Thank You : )
@CodingWithDilip
@CodingWithDilip 2 жыл бұрын
@@lalitdhurvey8113 npm start
@destamy
@destamy 10 ай бұрын
@CodingWithDilip thanks alot bro! You fix it up!! These code didnt working for the 2nd user but after i fix it up following your advice then it works! Auto subsribe your youtube channel!
@CodingWithDilip
@CodingWithDilip 10 ай бұрын
@@destamy your welcome 🤗 and again welcome to our family
@mominasim4035
@mominasim4035 8 ай бұрын
I’m not receiving any email I followed this completely. Am I doing something wrong?
CRUD Operations In Node JS | MERN STACK | CRUD REST API
17:20
CyberWolves
Рет қаралды 6 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 5 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 23 МЛН
Программисты-самоучки... Слушайте внимательно.
22:45
Евгений Афанасьев
Рет қаралды 135 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 64 МЛН
Send Mail with Nodemailer Using Node.js Backend
28:30
Daily Tuition
Рет қаралды 85 М.
Confirmation Email with Node.js
9:49
Ben Awad
Рет қаралды 139 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 66 М.
Are we going back to PHP with fullstack JavaScript?
9:57
Maximilian Schwarzmüller
Рет қаралды 154 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 5 МЛН