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 !
@shadullahsad97002 ай бұрын
Thanks a bunch.. solved all the errors.. and works perfectly now.. thank you thank you
@JohnDismar Жыл бұрын
Great Job CyberWolves, it is working well! Thank you so much for your tutorial ❤
@Justvics Жыл бұрын
how, mine isn't working
@grenstack Жыл бұрын
mine isnt working
@usmanshahid85292 жыл бұрын
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 ❤️
@Ytrajpoot2 жыл бұрын
but by this method you have more controll on verification
@usmanshahid85292 жыл бұрын
@@Ytrajpoot its more efficient way to handle code because by this you can expire it ,but in mongodb it hard ....
@Ytrajpoot2 жыл бұрын
@@usmanshahid8529 sure
@kalashvasaniya1 Жыл бұрын
Bro you are GOD no one can explain this process that simply!
@TECHWITHNIZER6 ай бұрын
do not compare God broo even if am a sinner
@somyagupta7471 Жыл бұрын
Wow this video is very helpful for me... Thankyou so much ❤❤
@MMAGO12 жыл бұрын
King CyberWolf!
@santoshbhat-lo6rz Жыл бұрын
Amazing tutorial.Given source code is helpfull
@rockbelleh62372 жыл бұрын
Indeed this is a great work.I appreciate u alot sir.tnks and God bless
@1cppython Жыл бұрын
good job ..great explanation
@greythirdeye17142 жыл бұрын
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 #🙏
@riteshgsh2 жыл бұрын
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 Жыл бұрын
Thanks, super helpful! Here's a like :)
@frenkie1281 Жыл бұрын
I’m not receiving any email I followed this completely. Am I doing something wrong?
@mominasim40358 ай бұрын
same
@jsaugat_5 ай бұрын
appreciate the content, i got a feedback though: the bg music is too annoying
@life-lessonn.10 ай бұрын
Not any mail come why after Register ?
@rozumyratatamuradow85652 жыл бұрын
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 Жыл бұрын
you are amazing ❤
@usamaay79072 жыл бұрын
after getting email and clicking on it, 404 page not found error occurs, Please help me
@kimmotech Жыл бұрын
I get the same error
@martinonic66254 ай бұрын
@@kimmotechsend me the repo
@raphaelandrade52812 жыл бұрын
Next time do a video without music. Thank you for the video
@ARNABPRATIHAR-df4twАй бұрын
Email verification process is so easy but background music so problematic🤔🤔
@ibrahimirwin65682 жыл бұрын
I need your reply sir, why when I run my code (npm start (in client folder)) why won't the form show up?
@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.
@destamy10 ай бұрын
Yeah me too.. the system says internal server error lol 😂
@saurabhpandey6318 Жыл бұрын
its not working correctly email link are not open router to varify email can anyone please check out...
@alicjajot7577 Жыл бұрын
'await token.remove()' in routes/users causes the token to be removed and a '404 not found' page error.
@WebDev-wi3ui8 ай бұрын
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
@tesourodosceus2 жыл бұрын
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.
@CyberW0lves2 жыл бұрын
Thank you, console log error see what is the error in command prompt.
@MMAGO12 жыл бұрын
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 Жыл бұрын
user curly braces after each if statement like (!user){res.status(409).send()} this way and your code will work perfectly!
@saurabhpandey6318 Жыл бұрын
Can any solve iisu getting verify and instant getting 404 error and not verified email
@pranaykharabe71372 жыл бұрын
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 ❤!
@mudassarali74622 жыл бұрын
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 Жыл бұрын
@@mudassarali7462Hi! Do you know how to solve it? I have the same problem with error 404
@abelalejandroacunacoronado45492 жыл бұрын
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
@kailashbhujel77772 жыл бұрын
same thing happening to me
@usamaay79072 жыл бұрын
@@kailashbhujel7777 hey do you found the error
@kailashbhujel77772 жыл бұрын
@@usamaay7907 yes I had a problem with my route path function
@Djoako222 жыл бұрын
Thank you!❤
@lukasmacku2423 Жыл бұрын
Hello :), Do you know how to make the expireDate in PRISMA orm???
@saurabhband23542 жыл бұрын
Thank U 💕
@mikha28802 жыл бұрын
whoaa thankyou sir!
@fahadkazmi51152 жыл бұрын
kindly tell how to connect mongodb compass with this system please tell the procedure
@CyberW0lves2 жыл бұрын
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. :)
@ruthvijrane86475 ай бұрын
Can anyone help me for deployment of these code I am using vercel but bot able to deploy it
@devfanor35362 жыл бұрын
Que grande eres!!!
@quanduong3390 Жыл бұрын
thank you so much
@kailashbhujel77772 жыл бұрын
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.
@Ytrajpoot2 жыл бұрын
something wrong in your route path function
@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
@muhammedjaseem388211 ай бұрын
@@kimmotech Hi can you share your github code repo link.I am having same trouble
@wisdomelue2 жыл бұрын
what is being used to redirect the user to your custom page?
@zaynedit7862 жыл бұрын
useNavigation hook
@jomariosacia9907 Жыл бұрын
It said token.remove() is not a function
@trpmusicvideocreator61032 жыл бұрын
Awesome 🙏🙏
@milgraph115 Жыл бұрын
can I use this for production?
@Dip-d9l Жыл бұрын
Bro please help me. How to get JWTPRIVARKEY
@ismahenabdallah21882 жыл бұрын
good night , i followed all the steps , but i can register without verifying with email and verified:true not matche help me please
@Ytrajpoot2 жыл бұрын
you check it by if condition if(verified){}
@nikhilab3372 жыл бұрын
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
@zureka32422 жыл бұрын
Hi, just change the validUrl to true by default in EmailVerify and you are good to go!!
@piyushapatil6702 жыл бұрын
@@zureka3242 didnt work for me
@Chris-ti1ll2 жыл бұрын
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});
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??
@Ytrajpoot2 жыл бұрын
try cors middleware
@muhammedjaseem388211 ай бұрын
hey did you solve this problem.Canyou share the gihub repo link
@muhammedjaseem388211 ай бұрын
@@Ytrajpoot can you share your github repo link.so i can compare solve this issue
@ikhlasaralbaev2 жыл бұрын
super!
@rkvbuzz92442 жыл бұрын
Bro How to deploy pls make a video🙏
@jason94682 жыл бұрын
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?
@rockbelleh62372 жыл бұрын
Nice question still waiting for this response
@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 Жыл бұрын
@@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 Жыл бұрын
@@jason9468 Np. In the backend, returning an err as a response to the frontend.
@muhammedjaseem388211 ай бұрын
@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
@astb012 жыл бұрын
Maybe don’t use background music it can be off putting
@tainkhantaibkhan13368 ай бұрын
Missing .env file
@moralstories926Ай бұрын
Suggested by Chat GPT. 👍
@localhub3789 Жыл бұрын
disliked due to you didn't test it . 2 hours wasted
@rashedulalam77542 жыл бұрын
Nothing showing
@CyberW0lves2 жыл бұрын
What kind of error you are getting on console?
@worldbest30979 ай бұрын
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" }); }
@worldbest30979 ай бұрын
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 Жыл бұрын
Agar test nahi karte toh vedio mat bana
@saurabhpandey6318 Жыл бұрын
??
@md.dilshadulislam9113 Жыл бұрын
bruh, why so cringe.. drop the music
@ansabali4412 жыл бұрын
getting error, not sending the email......kindly guide........... Invalid login: 535-5.7.8 Username and Password not accepted
@CyberW0lves2 жыл бұрын
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.
@nikhilab3372 жыл бұрын
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
@ansabali4412 жыл бұрын
@@CyberW0lves thanks brother. I resolve this.
@ansabali4412 жыл бұрын
@@nikhilab337 follow the above steps. Your problem will be resolve
@nikhilab3372 жыл бұрын
@ansab ali i tried the above steps now still getting 400 (bad request)
@CodingWithDilip2 жыл бұрын
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
@CyberW0lves2 жыл бұрын
Thank You : )
@CodingWithDilip2 жыл бұрын
@@lalitdhurvey8113 npm start
@destamy10 ай бұрын
@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!
@CodingWithDilip10 ай бұрын
@@destamy your welcome 🤗 and again welcome to our family
@mominasim40358 ай бұрын
I’m not receiving any email I followed this completely. Am I doing something wrong?