Hi John Ahn . Thanks a lot for this tutorial , Do you have something with Admin dashboard , where the Admin can perform CRUD to products and ..RUD to users?
I'M WRITING BEFORE WATCHING THIS Hello John! I've spotted some problems with your mern-boiler-plate which I tried to handle with. First, you don't check what data the user enters when logging in and registering. I used @hapi/joi to validate it. Second, your token field in User model is just a string. When someone tries to login onto from other client his token will be overwritten and he will get logout from previous client. I changed a bit User model, generateToken method and auth middleware so token is an array of strings field now, each token has signed date of expires in it and auth middleware is mapping throughout the req.cookies.x_auth, verifing each and compare date to current time and pushing only valid token (something like if(new Date(verifiedToken.expires).getTime() > now.getTime()) ) to verifiedToken array. Third, as I remember you don't actually send lastname info from React client to server so all of users lack their lastname (it's just a typo). Fourthly, your remeber me email doesn't work. I repaired it too. and few less issue issues I changed (like replacing callbacks to Promises in user controllers and adding asyncErrorHandler middleware and other less important stuff). I like and learned a lot from your videos and I was waiting for new one to comment about this.
감동해서 유튜브 댓글 처음 달아봅니다. John Ahn님 영상 많이 봤는데, 항상 알기 쉽게 개념을 그려서 설명해주시는 게 참 대단한 것 같아요. 덕분에 passport.js도 쉽게 이해할 수 있었습니다! 감사합니다 :)
너무 좋게 얘기해주셔서 감사합니다 !!! ㅎㅎㅎ 앞으로도 더 좋은 영상 올릴게요 감사해요 !! ㅎㅎㅎ
Glad to have you back again..
thank you so much for your comment !! really
토큰강의 듣다가 passport 방식이 있다길래 따로 해보고 있었는데 이미 영어로 강의가 있었네요! 잘보고갑니다!! 항상 좋은 강의 감사드려요
So much happy seeing you posting video again.. Thank you so much !!
really really thank you for your comment !!!
Good to see your video again
thank you sir for comment it is touching so much !
glad you are back, greets from Portugal :)
glad to see you too ! thank you so much !
Happy seeing your video, greetings from Ghana
Thank you buddy ^^ !!!!
Great video as usual, thank you for your amazing tutorials, and glad to see you upload a new video 😊💚
oh !! Thank you so much for your kind conment Thank you ^^
Hi John Ahn . Thanks a lot for this tutorial , Do you have something with Admin dashboard , where the Admin can perform CRUD to products and ..RUD to users?
Ah It is also good to deal with Admin part !
Great video.
Exactly what I needed
Thank you so much Mr. Ahn, I know I requested a video tutorial for Passport a while back. Many thanks. Hope you are doing well.
Hello John !! Always thank you for your kind comments . I also hope you are doing well !!!
Yes yes yes yes yes yes yes yes yes yes yes yes yes. Thanks for coming back mate, are you good?
Thank you so much for your comment ! I am good right now ! I will upload videos more often ! Thank you sincerely !!
잘보고 있습니다! 늘 감사합니다
수정님 진심으로 감사드립니다 많은 도움이 되었으면 좋겠네요 !!!
I'M WRITING BEFORE WATCHING THIS
Hello John! I've spotted some problems with your mern-boiler-plate which I tried to handle with.
First, you don't check what data the user enters when logging in and registering. I used @hapi/joi to validate it.
Second, your token field in User model is just a string. When someone tries to login onto from other client his token will be overwritten and he will get logout from previous client. I changed a bit User model, generateToken method and auth middleware so token is an array of strings field now, each token has signed date of expires in it and auth middleware is mapping throughout the req.cookies.x_auth, verifing each and compare date to current time and pushing only valid token (something like if(new Date(verifiedToken.expires).getTime() > now.getTime()) ) to verifiedToken array.
Third, as I remember you don't actually send lastname info from React client to server so all of users lack their lastname (it's just a typo).
Fourthly, your remeber me email doesn't work. I repaired it too.
and few less issue issues I changed (like replacing callbacks to Promises in user controllers and adding asyncErrorHandler middleware and other less important stuff).
I like and learned a lot from your videos and I was waiting for new one to comment about this.
강의 잘보고 있습니다. 영어는 생각보다 힘드네요 ㅎㅎ
Very nice video મારા વિડીયો સપોર્ટ કરજો ભાઈ