For those getting error at 1:56:16 -> findOne in mongoose no longer accepts a callback function (see at 1:49:00 ). Convert this into a promise and Your code will work fine. My code is as follows: const existUsername = new Promise((resolve, reject) => { UserModel.findOne({ username }).then((err,user) => { if(err) reject(new Error(err)) if(user) reject({ error: "Please use unique username"}); resolve(); }).catch(err => reject({error: "exist username findone error"})); });
@@pavanMudavath822for me it didn't worked,I have almost completed my own authentication bcz of this rejection😅will launch with my e-commerce project very soon
nice, would u do the exact same tutorial on nextJs with typescript? i was learning NextJS but reset password/OTP part was always a missing piece on any other tutorial out there~
Hey Daily Tution, came after a long time. And was going thorugh your youtube channel and DAMMMNNNN bro!!!! AMAZING💯🔥❤ content, no doubt. But I was smiling at the same time cause, you have done some really cool stuff - Best of All the World! 😂 nice. Tutorial Structure like Net Ninja. Thumbnail Design like Fireship. And Delivering Content like Mosh Programming. Dammnnnn🤣 Best of ALL the Worlds. I have no offence, just saying it's very much noticable 😂.
@4:02:00 ish when you are done with Password.js , and if you reload/refresh the page, it is because your zustand store is emply, so dont worry about it. He addresses this in @4:07:30 ish when the same thing happens in ProfileSettings realoading/refreshing the page. NOT AN ISSUE! He has solved it in around @4:11:20 ish by getting user from the token itself..
Hi Ashutosh, I'm also getting the same error. I investigated a lot but unable to figure out the possible issue hence just wanted to know were you able to resolve this error ?
hi ashutosh, i am getting the same error as of today, especially at api/register POST request [@1:56:20]...were you able to find the solution to this issue? If so, can you please help by addressing the same? Thank you for your time. :)
@@unfoldingcode i have uninstalled vpn extension i had installed touchvpn chrome extension. I restarted vs code and still it doesnt seem to work...are you sure it was only VPN issue?
@4:17:00 you might notice that your password isnt showing any components, do not worry, he has mentioned this and rectified this in @4:21:00 ish ...so just continue without worrying
@1:56:00 Request route facing 500 error. I downgrade after facing the error to mongoose 6.8, 6.11.1, 6.00. Not any version is working. I am totally stuck! Couldnt find any solution from anywhere. I used vite instead of create react app because of custom tailwind uses. What can I do for it? Does anybody guide me? @DAILY TUITION!!!!!!!!!!
hey thanks for this, im just starting out this tutorial and was wondering after logging in if we can design/create a dashboard that a user sees once he or she is logged in ?
why you have created a middleware for username you can do it on /login route too & I'm confused that you are already implementing that logic in /logic route
Did you make Vs code settings tutorial???? I trying to make a blogt website using your vedios. But I am struggling with Vs code set up... I am a new bee .... please help 🙏
i really appreciate your effort but you should show the output while making register login etc controller on the web browser so that we can find where we made mistake after following till 2:20:00 i am leaving your video i waste so much time and you are not even replying to comments
@@appstuff6565 (node:12696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. could you please guide
when i logout and remove token and try to login again the password page is not loading i think it is trying to take data from getusername as the there is no token so it is not loading any solution for this?
awesome video ❤. Just getting error while resetting the password ("node:internal/errors:496 ErrorCaptureStackTrace(err); ^ Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:405:5)") ? Can any one help ?
Thank you for the videos, I have learned a lot. But I have just encountered an error in trying to send an email with a nodemailer. Response: 421 service not available how don't solve the erreo
Hi there, I just finished the tutorial and I thank you for this! However how can I do the remember me option so that my users dont have to sign in everyday? Do you have a video on that ? Can you send me the link if you do? Thanks
Hey Im almost done with the project and since u have finished your project can u tell me that, like the ui of the form box when u zoom out to like 80% everything fits but when u zoom out to 100% which is the default browser size all the contents in the box come out how to fix this?
@@ayushsinha1696 Someone else had the same issue and they said it had to do something with their VPN, however I had vpn in my chrome extension and i removed that yet still im getting the same issue. were you able to resolve it? if you havent solved it yet, and if you do find a solution please comment here..thanks..
okay, so anyone going through this issue, i found the solution, apparently Mongoose doesnt accept callbacks in versions 7 and greater, they prefer to use aync/await or promises apparently as seen from google/stackoverflow. However the tutor has used version 6.8.0, which doesnt cause this issue yet. So my solution was to downgrade to mongoose which accepts callbacks, hence type in terminal "npm i mongoose@6.8.0" and it was fine to go.
My button in username component is not in the form, i copied everything from repo but cannot fix. Someone When i zoom out the browser to 80% its normally working, but when i return to 100% it goes out of the form. help please
@apply border-4 border-gray-50 shrink-0 h-3/4 w-[30%] rounded-3xl px-7 minw. the @apply error in this code i am not able to remove it. Any suggestions how to work on it ?
@@DailyTuition I'm following everything, step by step in past few days. some portions of your explanation need some more detail rather just saying it by name. why because new learners won't understand (like me).It is still manageable with googling. But I would say this is a near high-level explanation. I'm at the end of the portion now. I don't want to complain it all. Great Job and thanks for the video🤝.
Don't make this type of confusing video please be clear about mvc pattern and make otherwise noone can easily understand if you know hindi it will be better
(node:12696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. this error is coming while generating OTP. Please help someone @2:38:42
The error is from the database connection. You have to check the connection function. Check database name, username and password and make sure you have a correct database connection URL.
the way you create routes is new for me . great learning
For those getting error at 1:56:16 -> findOne in mongoose no longer accepts a callback function (see at 1:49:00 ). Convert this into a promise and Your code will work fine. My code is as follows:
const existUsername = new Promise((resolve, reject) => {
UserModel.findOne({ username }).then((err,user) => {
if(err) reject(new Error(err))
if(user) reject({ error: "Please use unique username"});
resolve();
}).catch(err => reject({error: "exist username findone error"}));
});
Tnx u bro, you're a lifesaver❤
Not working broo,can u share your GitHub plzz
@@kiahadizade630 Is That You completed the Project I am Gona Start Is there any thing to remember about errors Or it is Working Fine
Thanks bro!!
@@pavanMudavath822for me it didn't worked,I have almost completed my own authentication bcz of this rejection😅will launch with my e-commerce project very soon
This channel is doing amazing work!!... I just loved your tutorials... please don't stop!!
If you suffer the 500 internal sever error, check the version of your mongoose. Please downgrade to version 6.
thanks for the update...😊
Thanks a lot 🙏
thank you.
Hey, I just downgraded to version 6 and now I'm getting the invalid connection error
Thank you bhai 2 din se parisan the😢
nice, would u do the exact same tutorial on nextJs with typescript? i was learning NextJS but reset password/OTP part was always a missing piece on any other tutorial out there~
Hey Daily Tution, came after a long time. And was going thorugh your youtube channel and DAMMMNNNN bro!!!! AMAZING💯🔥❤ content, no doubt. But I was smiling at the same time cause, you have done some really cool stuff - Best of All the World! 😂 nice.
Tutorial Structure like Net Ninja.
Thumbnail Design like Fireship.
And Delivering Content like Mosh Programming.
Dammnnnn🤣 Best of ALL the Worlds. I have no offence, just saying it's very much noticable 😂.
Thanks bro! such an amazing project You've done
@4:02:00 ish when you are done with Password.js , and if you reload/refresh the page, it is because your zustand store is emply, so dont worry about it. He addresses this in @4:07:30 ish when the same thing happens in ProfileSettings realoading/refreshing the page. NOT AN ISSUE! He has solved it in around @4:11:20 ish by getting user from the token itself..
can you tell me I am stuck in Sign in functionality My token is not getting creating @4:03:56
Please reply!!
Plzz help brooo
what help you want? @@pokescreation
sorry unfortunately i dont remember how i came around. you're better off seeing the latest tutorials..@@Movie-s5w
hello sir can you tell me what are the components I need to make changes to add role based authentication l. And what changes to make in database
1:56:01 Post request is giving 500 internal server error pls help
Hi Ashutosh, I'm also getting the same error. I investigated a lot but unable to figure out the possible issue hence just wanted to know were you able to resolve this error ?
@@unfoldingcode No
hi ashutosh, i am getting the same error as of today, especially at api/register POST request [@1:56:20]...were you able to find the solution to this issue? If so, can you please help by addressing the same?
Thank you for your time. :)
Resolved. For me it was a sort of VPN issue.
@@unfoldingcode i have uninstalled vpn extension i had installed touchvpn chrome extension. I restarted vs code and still it doesnt seem to work...are you sure it was only VPN issue?
first entry from front end takes place around @3:26:00 and we enter value in form and it gets stored in zustand
Hey,have u completed this?
yes, months ago. @@pokescreation
@@appstuff6565 plzz help me broo
I am stucked plzz
@@appstuff6565 i have completed till login and register testing,but stucked in getting get method username,plzz help
How you remember class names of that tailwind... is there any tips please share us : )
practice
@3:02:00 when testing mail in thunderclient, make sure to register the user first..
backend is set and now back to frontend from @3:02:30 and we start with axios
Elements are not aligning center what is the issue code is same as yours
@4:17:00 you might notice that your password isnt showing any components, do not worry, he has mentioned this and rectified this in @4:21:00 ish ...so just continue without worrying
Ha e u completed this?
css is not working even if i follow same steps.
when trying to register got this,
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
AWSOME CONTENT THIS CHANNEL IS UNDERRATED BRO
@1:56:00 Request route facing 500 error. I downgrade after facing the error to mongoose 6.8, 6.11.1, 6.00. Not any version is working. I am totally stuck! Couldnt find any solution from anywhere. I used vite instead of create react app because of custom tailwind uses. What can I do for it? Does anybody guide me?
@DAILY TUITION!!!!!!!!!!
I'm also facing same error. How did you overcome that error.
Did you find any solution for this
Can you please tell me, What kind of architecture you are following? For example MVC or mvvm...
what package do u use to send the opt ( sendgrid, nodemailer or ... ) i need to know before start the video cz sendgrid is not working for me
I had problems during the first test.
here is the error:Status: 500 Internal Server Error
Size: 12 Bytes
Time: 76ms.
{
error:{}
}
I need help
did you resolve this .
I also got same error.
realy think you man you are the best
react love daily
Amazing project, hats off
Thank you so much
give me one answer where's come your static file tell me which one you add in forntend file.?
hey thanks for this, im just starting out this tutorial and was wondering after logging in if we can design/create a dashboard that a user sees once he or she is logged in ?
Can you make a video on google auth like google sign in option with jwt
Also add the mobile phone number OTP functionality.
Bro I Have a doubt. In. The video. At@ 6.00 min duration of the video
Akshay in ~/Desktop/Projects/login_app on master
Can you explain this
How master was came in
Just speechless!. You are awesome!
I dont know why i cannot send the api over the thunder Client it is alwys turn out error ,but i see your video ur a susefully
same issue for api/register/ POST API request, have you found the solution since its been 3 weeks?
@@appstuff6565 same issue, have you found the solution?
why you have created a middleware for username you can do it on /login route too & I'm confused that you are already implementing that logic in /logic route
why you're using .btn:hover when you just can do hover: with tailwind classes?
Hi. Thanks for the tutorial. What is the name of the vscode extension used for auto comments? Thank you so much
ES7 React/Redux/GraphQL/React-Native snippets
Can you please make video on fooder structure of mern with typescript
Did you make Vs code settings tutorial????
I trying to make a blogt website using your vedios. But I am struggling with Vs code set up... I am a new bee .... please help 🙏
Thanks for the tutorial.
is it possible to pupulate between different createConnection models
Middle ware used in appController for verifying user after implementing JWT Token @2:06:30
my auth.js not working it is showing error
Sir plz make a complete ecommerce using MERN stack
Sir, the input fields and register/login buttons are not fitting inside the glass created in css, what to do?
Increase height of page through style{{ height: 90vh}}
@@usamashahid6701 hey Thank you :)
@@AbhishekKumar-gf5qt Pleasure bro.
Bro you are an Amazing person but please make these videos more detailed
Hi bro I am Srinath I am getting few errors can you help me to resolve it
@@boringskill866 what errors do you get?
@@vladguzun2522 while calling useFetch in password component to display username and profile i am getting infinite loop calling
i really appreciate your effort but
you should show the output while making register login etc controller on the web browser so that we can find where we made mistake
after following till 2:20:00
i am leaving your video
i waste so much time
and you are not even replying to comments
hey bro, chill, whats the issue? Let me know if you are facing any issue.
@@appstuff6565 (node:12696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. could you please guide
sir also make one mern project complete
Do I must open the Port in Windows Firewall 8080?
Thank you, vai.
when i logout and remove token and try to login again the password page is not loading i think it is trying to take data from getusername as the there is no token so it is not loading any solution for this?
Thank you a lot
What is font name in your vscode?
Thank you so much❤
The register function in not working
6:00 how did you got master automatic
JWT Token explanation from @2:00:20
It show error of mongodb-memory-server will fully drop support what can i do
How to provide the authorization token at header with frontend instead of just using postman?
You can find a frontend dev to do it for you or learn react and fix it 🤲
What font using in vscode?
Just one question can this auth backend structure service a mobile app too?
yes
Hello sir, it is showing MongoMemoryServer instance failed during Mongodb server connect. What to do
anyone from Bangladesh??
4:14:16......my getUsername function does not return username only userId, ist and exp.....please help
how to deploy sir?
awesome video ❤. Just getting error while resetting the password ("node:internal/errors:496
ErrorCaptureStackTrace(err);
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:405:5)") ?
Can any one help ?
aap aik hi func mai 2 res bhej rhe hoge provide me detail err
i am unable to register getting error 500
same
Bro.....I got the message 500 internal server error, instead of getting User register successfully, what to do bro ??
instead of using .then() .catch() just use await
there is a error in the registration. that is why the execution return catch() method. find the error first.
openssl not recognised showing any one tell me i am install openssl but showing error
what is the theme name of vscode ?
Thank you for the videos, I have learned a lot. But I have just encountered an error in trying to send an email with a nodemailer. Response: 421 service not available how don't solve the erreo
Hi there, I just finished the tutorial and I thank you for this!
However how can I do the remember me option so that my users dont have to sign in everyday? Do you have a video on that ? Can you send me the link if you do? Thanks
Did you face any issues while building the project ? I am going to follow along and It would be a big help to know any issues.
Hey Im almost done with the project and since u have finished your project can u tell me that, like the ui of the form box when u zoom out to like 80% everything fits but when u zoom out to 100% which is the default browser size all the contents in the box come out how to fix this?
@@PiyushYadav-pl9jm hey did you start the project? did you get any error? It would be a big help to know any issues in advance
@@jabiullahkhantalamarla7616 use media queries for responsiveness
@@hashirscamhave u completed?
Boss, Please teach us how to deploy such projects.
Github Pages
Hello bro I almost complete it but getting few errors can u help me to resolve
Thankyou
Most Welcome Keep Supporting
How can we add social media login ?
Hello bro I almost complete it but getting few errors can u help me to resolve
I want to do the same thing with next-auth. How can I do that?
Hello bro I almost complete it but getting few errors can u help me to resolve
@1:56:00 API POST request not working for api/register with json data..anybody else facing this issue?
Yup same issue
@@ayushsinha1696 Someone else had the same issue and they said it had to do something with their VPN, however I had vpn in my chrome extension and i removed that yet still im getting the same issue.
were you able to resolve it? if you havent solved it yet, and if you do find a solution please comment here..thanks..
okay, so anyone going through this issue, i found the solution, apparently Mongoose doesnt accept callbacks in versions 7 and greater, they prefer to use aync/await or promises apparently as seen from google/stackoverflow. However the tutor has used version 6.8.0, which doesnt cause this issue yet. So my solution was to downgrade to mongoose which accepts callbacks, hence type in terminal "npm i mongoose@6.8.0" and it was fine to go.
Copy the whole function and ask chatGPT to improve it and explain it to you. It's thanks to him that I understood.
Same Issues, I think because of he used Promise.. Did you guys fix it ?
My button in username component is not in the form, i copied everything from repo but cannot fix. Someone When i zoom out the browser to 80% its normally working, but when i return to 100% it goes out of the form. help please
Add zoom: 0.75; to glass class in Username.module.css. Thank me later!
@@testblh Thank you so much!
with zoom:0.75 remove height also from @apply, it will be responsive and never comes out from that container
How can we host this project
I am getting an error with my Promise.all block and can not figure out how to fix it. I have downgraded mongoose to version 6.8.0
is this kotlin????
openssl command not working
Why is in every tutorial used mongoose? Cant find anything with just mongoDB.
mongoose is ODM (Object Data Mapping) of mongoDB. Kind of same thing.
anyone who can provide one on one classes on MERN stack online?
Why you call a website "app"?
page is not reloaded again in mern website so it is call web app
how to function openssl command it is not working
you have to install it in your system and change the enviornment variables in system
59:07
25:22
2:09:37 today report
@apply border-4 border-gray-50 shrink-0 h-3/4 w-[30%] rounded-3xl px-7 minw. the @apply error in this code i am not able to remove it. Any suggestions how to work on it ?
you are messing things applying all methods in one.
Could you explain it more...
@@DailyTuition I'm following everything, step by step in past few days. some portions of your explanation need some more detail rather just saying it by name. why because new learners won't understand (like me).It is still manageable with googling. But I would say this is a near high-level explanation. I'm at the end of the portion now. I don't want to complain it all. Great Job and thanks for the video🤝.
2:50:19
Can anyone help me i am getting few errors
What errors?
The channel is inspired from codingwithmosh and makes use of same tone style and words 😂. Be original man😅
Don't make this type of confusing video please be clear about mvc pattern and make otherwise noone can easily understand if you know hindi it will be better
(node:12696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. this error is coming while generating OTP. Please help someone @2:38:42
@ 1:56:19 i am getting 500 internal server error can anybody help me with this
Hi, im getting 500 internal server error in register route
Did you find any solution?
@@mdfajlerabby8958 here for response because I am getting the same error as well
Hi, I got the same problem. I downgraded to mongoose version 6.0.11 Now its working!
When can we expect more next js projects
I'm getting error msg "invalid database connection"
The error is from the database connection. You have to check the connection function. Check database name, username and password and make sure you have a correct database connection URL.
In 1:01:16 I did not getting any file from windows why ?
What is the error?
Why do not show @apply tag?
Where?
I just love your videos. They are very easy to follow.
Thank you for all the knowledge you've been sharing on your channel
I referring your video but I got error in register route status 500 i try solve but no error gone please give solution
i am getting same issue...did you find a solution or the error?
@@appstuff6565 i had make a changes in API function
@@atulchougale5745 can you please highlight what changes you had to make to make it working? I am stuck at it..