You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sujeetgund You are right; it is happening because when the mongo is connecting it immediately create a new user , attached reference ;
here i have used a middleware to check if the new user is created or not and statically passed the id to check the user
so in your case the user is created but the id is not matching , if you open you mongodb collection and navigation to user document you will find the id copy that and paste in the code . it works fine.
I know this is not good approach, but i was working in this way through out the development . i request you to fix the issue by creating two new route, login and signup , let me know if any help required by my side.
firstly user signup so there id will be created then login to access the dashboard.
if logged in then everything works fine .
What does this issue address?
This issue is to address the bug in add product functionality.
How to produce this bug?
npm run start
http://localhost:3000
Supporting Evidence
The text was updated successfully, but these errors were encountered: