@@expert77 i was not bench watching the project playlist , but i think its the issue with the middleware set Up , if you set up verify middleware and the context properly to handle verify api to validate the user login state ,this might solve , i this i solve this to an extend , haven't completed the project yet , IDK
@@expert77 authenticate the token and check the user exit if store that in the state , that what i did , IDK its the solution or not const user = await User.findById(decoded.id).select("-password");
@navjyotkapoor539 dont see any error token is also saved in localstorage but when ever i refresh or open in new tab I get back to login page else every thing is working fine.
Thank you sir 🎉🎉
great. pls carry on
Thank you, sir 🙏
13:53 Sir after writeing all the same code also it is showing error in console same like this. When i refresh the website it is taking to login page.
same issue how to solve that?
@@MathewsGigi Dont know.
@@expert77 i was not bench watching the project playlist , but i think its the issue with the middleware set Up , if you set up verify middleware and the context properly to handle verify api to validate the user login state ,this might solve , i this i solve this to an extend , haven't completed the project yet , IDK
@@expert77 i have solve the login issue to an extend
@@expert77 authenticate the token
and check the user exit
if store that in the state , that what i did , IDK its the solution or not
const user = await User.findById(decoded.id).select("-password");
Sir make a project on microservice
After login I refresh i get back back to login any help would be great
What error is in console?
@navjyotkapoor539 dont see any error token is also saved in localstorage but when ever i refresh or open in new tab I get back to login page else every thing is working fine.
@@rippergamingyts i can help you as i resolved this issue
@@navjyotkapoor539 please tell how
@@navjyotkapoor539 that will be great
Thanks
Great work dear please to share code can help community
Thank you, sir 🙏