Build a Fullstack Login & Register Page with MERN (react.js, mongo, express, bcrypt, jwt & more)

  Рет қаралды 92,436

Brett Westwood - Software Engineer

Brett Westwood - Software Engineer

Күн бұрын

Пікірлер: 339
@phoney_the_Hypo
@phoney_the_Hypo Ай бұрын
Normally, I don't digest most of the tutorials. You've earned a spot on my list of favorites
@brettwestwooddeveloper
@brettwestwooddeveloper Ай бұрын
Awesome! I feel honored!
@yashsolanki9925
@yashsolanki9925 8 ай бұрын
As a beginner in react, it is was really helpful to me. I appreciate your efforts and make this kind of videos in future best of luck buddy for upcoming projects and happy coding 😊
@brettwestwooddeveloper
@brettwestwooddeveloper 8 ай бұрын
No problem, glad you enjoyed it!
@arizona2233
@arizona2233 9 ай бұрын
This was amazing, thank you. I haven't seen a video to explain exactly step by step, with checks along the way. Backend makes alot more sense now
@ayodejionayinka9215
@ayodejionayinka9215 7 ай бұрын
Your guidance was incredibly helpful, and I really appreciate the time and effort you put into this.
@brettwestwooddeveloper
@brettwestwooddeveloper 7 ай бұрын
No problem! Glad I could help you out!
@moh_idreesmohammadi9118
@moh_idreesmohammadi9118 Жыл бұрын
I would like to express my gratitude for your invaluable tutorial, which has greatly aided me, particularly in understanding and implementing middlewares. Despite my recent transition to backend development, I have spent an entire month diligently working on this seemingly straightforward project without success.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
No problem! Glad I can help you and appreciate the support!
@rudolphboshoff1545
@rudolphboshoff1545 3 ай бұрын
Thanks for this video, it was overall excellent. I especially loved that you rolled with the mistakes/typos and take us through the process of how you identify the issue and correct it.
@brettwestwooddeveloper
@brettwestwooddeveloper 2 ай бұрын
No problem and thanks for the support and the sub!
@williambarajas8090
@williambarajas8090 Жыл бұрын
Explained everything very well in detail, learned so much in under 2 hours. Best video I have watched on MERN, also a great re watch for a refresher on MERN.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you!
@marcelomatheus3959
@marcelomatheus3959 2 ай бұрын
The best video of MERN in YT
@brettwestwooddeveloper
@brettwestwooddeveloper Ай бұрын
Thank you Marcelo!
@michaelscofield2469
@michaelscofield2469 Жыл бұрын
you look like a model than a software engineer
@MenyeMC
@MenyeMC Ай бұрын
A Software Rizzard
@alabitemitope7236
@alabitemitope7236 5 ай бұрын
wow, this tutorial video is an absolute gem! The clarity of instruction, the depth of knowledge shared, and the engaging presentation truly set it apart. Thank you for making complex concepts so accessible and for empowering learners like me to enhance our skills.
@brettwestwooddeveloper
@brettwestwooddeveloper 5 ай бұрын
Thank you so much! Glad you are enjoying my content!
@danielsimi5865
@danielsimi5865 4 ай бұрын
this has to be the best video that has broken down all the concept of user interaction with a server
@jonathanalbert920
@jonathanalbert920 6 ай бұрын
i want to say how grateful i am when i found this tutorial making login, register page with mern. you taught us step by step. i have no other words to say. i am speechless. Thank you so much and SUBSCRIBED :)
@yagneshacharya2461
@yagneshacharya2461 10 ай бұрын
Trust me bro u have great potential on this platform , you will definetly reach millions of subscribers
@brettwestwooddeveloper
@brettwestwooddeveloper 10 ай бұрын
Thank you! Hopefully that happens!
@yagneshacharya2461
@yagneshacharya2461 10 ай бұрын
@@brettwestwooddeveloper and yes there is a little thing you can improve is : your screen is so zoom out , things are not seen clearly
@harkiratsingh763
@harkiratsingh763 7 ай бұрын
I am halfway through the video and the video is very easy to follow along Thanks a lot for the tutorial
@brettwestwooddeveloper
@brettwestwooddeveloper 7 ай бұрын
Thanks for the kind words! Glad I could help you!
@rayyazdi7744
@rayyazdi7744 Жыл бұрын
Hats off to you for teaching these important items so complete. Please do more related MERN stuff in the future.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank will do!
@FaridDiraf-l1b
@FaridDiraf-l1b 3 ай бұрын
8:10 , if you want to import a component automatically, you should just keep this component open in your VS code tabs bar. You managed to import automatically only login and register components because they were open
@brettwestwooddeveloper
@brettwestwooddeveloper 3 ай бұрын
Thanks for the tip and tuning into my channel!
@macenth_k
@macenth_k 9 ай бұрын
Pulled it off! Now I can use this anywhere!
@toobataqi
@toobataqi Жыл бұрын
Bro, you don't know how you saved my life. stay blessed
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
No problem! Glad I could!
@sherifelsherif7332
@sherifelsherif7332 6 ай бұрын
Brett, You are a blessing mate!, Explaining everything in exact details, Words won't describe how thankful we are for you!! Keep it Up!!
@williammaroon4568
@williammaroon4568 Жыл бұрын
Great video. Followed it all the way through and with some rewatches I got it all to work. I think you would get a lot of views with some quicker "follow up" videos. Adding a log-out button, making multiple user role types, and editing data within the dashboard would be logical next steps. There also seems to be a lot of people asking for source code, I think that is because most of the other MERN stack guides are older and don't work anymore. Maybe you could sell the source code, get a buy me a coffee link or something. Great start!!
@OnlyJavascript
@OnlyJavascript Жыл бұрын
i have production grade code. do u wanna buy me a cafe. it costs 1000USD.
@OnlyJavascript
@OnlyJavascript Жыл бұрын
@chmod666-p
@chmod666-p 11 ай бұрын
Thank you for the fantastic tutorial! I appreciate the clarity in your explanation and the attention you put into the video. Keep up the great work! I hope your channel continues to grow even more!
@brettwestwooddeveloper
@brettwestwooddeveloper 11 ай бұрын
Thank you so much Lucas!
@chmod666-p
@chmod666-p 11 ай бұрын
@@brettwestwooddeveloper I just have one question, I just finish your tutorial and works fine, but When I change user, I need to refresh to render the Hello `new user`.. How can I make this dynamic, in case I back to login page and when I log in, I dont need to refresh the page to display the "updated" data?
@onigbindedavid6630
@onigbindedavid6630 8 ай бұрын
​@lucassilverio8923 are u adding d status code while logging in??
@bhoamikhona2480
@bhoamikhona2480 10 ай бұрын
This is the best video on the topic! Thank you so much! Also, could you please make a video for the logout part as well?
@mehemmedhezerxanli8228
@mehemmedhezerxanli8228 7 ай бұрын
If you're facing an issue where cookies aren't showing up in the header, try removing the 'return res.json(user)' line from the last part of the 'try' block within the 'loginUser' function.
@Your-Majesty
@Your-Majesty 4 ай бұрын
Thank you bro
@dalarcoin6851
@dalarcoin6851 3 ай бұрын
That isn't in the loginUser, it's in the registerUser function. Taking it out of the registerUser function also had no effect.
@mehemmedhezerxanli8228
@mehemmedhezerxanli8228 3 ай бұрын
@@dalarcoin6851 you are talking about another part and problem, if you watch carefully you can see the problem that I mentioned
@dilshanwickramasinghe3633
@dilshanwickramasinghe3633 3 ай бұрын
thank you man that really helped me
@mayanksh219
@mayanksh219 10 ай бұрын
Just Completed This Tutorial and feedback is that Well explained, Any begineer can also understand this complex procuedure. Thank you very much
@sourabhpatole5300
@sourabhpatole5300 Жыл бұрын
Bro you are good instructor everything you explained in very smoothly
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you very much!
@asasas1820
@asasas1820 9 ай бұрын
​@@brettwestwooddeveloperplease help me , I'm getting network error in axios
@stevenmackey6346
@stevenmackey6346 7 ай бұрын
Great video, still working through it. Any chance you could share the finished code?
@tylerdurden4563
@tylerdurden4563 7 ай бұрын
Hi everyone! I think I fixed the need to refresh the page to render the elements based on the user. In the Login component page add the following code: Import the context file: import { UserContext } from "../context/UserContext" Deconstruct the setUser from the context: const { setUser } = useContext(UserContext); Then, right below the axios.post to login and above the setData({}), set the user to data.user: setUser(data.user); Took me a couple of days of trial/error and it might not be the best fix, but I hope it helps! If anyone has additional comments, please comment it and lets improve together Apart from this small issue, great tutorial! Thanks to the creator :D
@seif9923
@seif9923 5 ай бұрын
thats really awesome man, thanks for helping, I had the same issue and this fixed it, its better if you just paste the whole code here though.
@abirdutta1357
@abirdutta1357 3 ай бұрын
Thanks man was stuck for 2 days
@adc.99
@adc.99 Жыл бұрын
Thanks a bunch, brother. Such a fantastic tutorial for beginners.
@philippeauguste1516
@philippeauguste1516 24 күн бұрын
Thanks from France, a very good tutorial
@brettwestwooddeveloper
@brettwestwooddeveloper 6 күн бұрын
You are welcome! Thanks for tuning in!
@johannesabate3089
@johannesabate3089 Жыл бұрын
honestly, this is the only tutorial that works. plus tnx for details
@valoriebroderick
@valoriebroderick 11 ай бұрын
Thank you for the clarity! This tutorial saved my life! 😋
@jayabharath03
@jayabharath03 10 ай бұрын
1:33:32 in this place i get an error "jsx attributes must be only assigned a non-empty 'expression'."
@luisatejada6218
@luisatejada6218 9 ай бұрын
Brett, I have to say that everything is amazing to follow and very easy to understand, I am wondering for a bit more info about the port connection from the beginning, and how I can connect it with my actual page, it would be awesome to have some more ideas or videos about it bro. happy to learn from you amazing job!
@biankgriffin5103
@biankgriffin5103 5 ай бұрын
Saved my life! The only tutorial that i just got a click on my head.. thank u!! I subscribed to your page 😉 u deserved it 100000000
@heraditestreamingarchive1100
@heraditestreamingarchive1100 7 ай бұрын
Good class. Very helpful. Only thing I wish there was a github repo of the class so I could check my work with yours when I do a mistake. Thanks for the lesson though!
@TheDiegoP12
@TheDiegoP12 7 ай бұрын
thanks for the tutorial! After the login how can i avoid having to refresh the page in order to see the data?
@brettwestwooddeveloper
@brettwestwooddeveloper 7 ай бұрын
First off thanks for the sub! And yes I will have to make another video demonstrating this because you shouldn't have to refresh the page manually.
@aljongabrielambasvaldez
@aljongabrielambasvaldez Жыл бұрын
Hi Glad that I found your tut, hoping to have more regarding MERN CRUD, thanks
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
I will in the bear future, just been busy with Next.js
@chefnabil171
@chefnabil171 2 ай бұрын
Nice work Brett thank you so much
@brettwestwooddeveloper
@brettwestwooddeveloper Ай бұрын
No problem! Thanks for the support!
@crnomudi7499
@crnomudi7499 Жыл бұрын
This actually helped me a lot thanks!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Glad I could help you out there!
@kumar_sanjeevdutta1069
@kumar_sanjeevdutta1069 Жыл бұрын
Great, I liked your step by step approach
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you!
@rogerwinright2290
@rogerwinright2290 Жыл бұрын
Thank you so much for this tutorial! It gives such an awesome basis for projects and loads of understanding about Node and Express!
@hendyboy
@hendyboy Жыл бұрын
Sir in this video the login and registration form is created. Sir please make a video on how to show that data in the profile and why to put the image as well. Please sir
@tylerdurden4563
@tylerdurden4563 7 ай бұрын
Great tutorial! Thanks for making it!!! I was just wondering if you could continue with this project adding Google Authentification 2.0. Or if you know any other good tutorial or resources where they show you how to add Google Auth to the already existing context and jwt
@brettwestwooddeveloper
@brettwestwooddeveloper 7 ай бұрын
Hi Tyler and thanks for the support and watching my content. I don't know a good video about Google Authentication with MERN stack. However, I do have a Google Authentication video using Next Auth. Which is with Next.js. kzbin.info/www/bejne/f5C8dHaVo6unbZI
@Mouldy7890
@Mouldy7890 Жыл бұрын
Thanks so much for the tutorial, this was really really helpful. Clear and concise explanations! I have subbed and look forward to more videos.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you for the support and glad I can help!
@macenth_k
@macenth_k 8 ай бұрын
Ok now I need some help guys. I want to add other things to the Dashboard as well! I want to add a sidebar and nav bar, two divs and all. Problem is, I don't know where to add it. If I add anything else, it stops working
@christopherdsmd
@christopherdsmd 11 ай бұрын
awesome tutorial I watched the whole thing. Exactly what I was looking for Thank you
@maanas_sehgal
@maanas_sehgal 9 ай бұрын
Thanks a lot brett for this amazing tutorial, really loved it, although I am getting an error that I am not receiving the data of user on the dashboard, could you please help me somehow?
@arunavgupta1629
@arunavgupta1629 Жыл бұрын
hyy , i am getting error of intermediate object undefined while making register page try and catch section
@ixMutant
@ixMutant 7 ай бұрын
I have been stuck on it for a day now... 1:28:10 i have the same problem but it doesnt resolve on refreshing
@dhruvyadav6635
@dhruvyadav6635 4 ай бұрын
In App.js set "axios.defaults.withCredentials = true"
@dalarcoin6851
@dalarcoin6851 3 ай бұрын
Did you ever find the fix for this?
@asasas1820
@asasas1820 9 ай бұрын
It was great learning and coding together . please provide the css part also !!
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
Thank you but unfortunately I don't have the source code for this anymore.
@destocot1729
@destocot1729 Жыл бұрын
only half way through the video but i love the react toast its so clean
@syedmasum8131
@syedmasum8131 10 ай бұрын
Wow this was really good video. I really liked it. A little bit explanation how logout works is missing other than that its a real good tutorial. simple and easy for beginners like me.
@Olhaccord
@Olhaccord Жыл бұрын
That was very cool, easy to follow the tutorial, super useful information, thank you very much!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you so much, glad I can help!
@aziznaufalll5600
@aziznaufalll5600 Жыл бұрын
This is a very good tutorial, thank you sir. i subbeddd
@sharcodes
@sharcodes 9 ай бұрын
A github repo could be cherry on the top. Anyway Great content.
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
Thank you and yea I wish I had one for this. I am going to recreate this video anyways!
@andresmejia3371
@andresmejia3371 8 ай бұрын
De los mejores videos que he visto para aprender a realizar un MERN completo felicitaciones!!! por mejorar un poco la pantalla grande del lado izquiero para ver y observar mejor las validaciones que realizas con las Developer tools , Continua asi exitos y bendiciones
@dragx26
@dragx26 Жыл бұрын
You deserve more subscribers ✅💯 You explained it in very understanding way, point to point 😍🤩 Subscribed 👍❤
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you!
@dws-7
@dws-7 9 ай бұрын
Is there any way to implement the dashboard that it loads user data without refreshing manually? 🙂
@co4160
@co4160 2 ай бұрын
GREEAAAT TUTORIAL!!
@brettwestwooddeveloper
@brettwestwooddeveloper 2 ай бұрын
Thank you! Glad you liked it!
@shaokhan-i8k
@shaokhan-i8k Жыл бұрын
broo its the best video on this topic!!!!!!!! Subscribed🤩🤩
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you so much for the sub! Means a lot!
@kamdi_dev
@kamdi_dev 11 ай бұрын
Please help me am stuck i was even add imgFile so when I click login I receive an error message from imgFile I will send the code here in the comments section
@weebandkeeb1834
@weebandkeeb1834 Жыл бұрын
Thanks for the video man! I have learnt a lot from it.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Awesome! Glad you were able to. Appreciate the feedback!
@MarkJosmilDegamo
@MarkJosmilDegamo Жыл бұрын
1:39:15 ill be saving this timestamp for future. i hope i can fully understand this soon. :)
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Glad you are enjoying it
@deepkodes4434
@deepkodes4434 11 ай бұрын
why did u need vite ? could u have done the same w npx create-react-app stuff
@gurajb52
@gurajb52 Жыл бұрын
Great tutorial ! Can this be built upon whereby there is an admin side to see which users have signed up?
@FADIK1987
@FADIK1987 2 ай бұрын
very great tutorial, I have a question about redirection on the localhost with CORS, for some reason it did not work for me
@vighneshbhat7375
@vighneshbhat7375 9 ай бұрын
Really helpful tutorial. One remark, you could've also added a logout part to this tutorial. Really helpful tho
@olamidealiyu4504
@olamidealiyu4504 Жыл бұрын
Amazing job!!!! It was an amazing build
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you!
@atheel5678
@atheel5678 Жыл бұрын
Thank you for your tutorials ❣
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
You are so welcome!
@DaniCodigoLatino
@DaniCodigoLatino 10 ай бұрын
Tienes un nuevo seguidor! Increíble el video! : )
@yashwavare4609
@yashwavare4609 25 күн бұрын
1:48:54 , you have refreshed the page to show name in the dashboard. How to do it without refreshing the page
@leonardocoelho-xp1tw
@leonardocoelho-xp1tw 7 ай бұрын
Top notch content!
@brettwestwooddeveloper
@brettwestwooddeveloper 7 ай бұрын
Thank you!
@alaricshiran9189
@alaricshiran9189 8 ай бұрын
Awesome but some . were , and some , were dots drove me crazy but it helped me understand the code much better thank you check the Auth file if anthing went wrong if you are trying to compare hashedpassword with password
@alaricshiran9189
@alaricshiran9189 8 ай бұрын
hope you would have added a logout as well,
@ryanpereira7687
@ryanpereira7687 9 ай бұрын
Great tutorial, I just had a question, whenever I login and land on the dashboard page I am not able to see the username right away, I have to refresh the page to see it. I have checked the response from the server and I am getting the data to react its just not displaying it unless i refresh it. Ypur help would be appreciated on this. Thanks
@arandomuser11
@arandomuser11 7 ай бұрын
Hi there, were you able to figure out a solution to this bug? I just finished this video yesterday and have been trying to solve the bug myself since then, but without success. I suspect it has to do with the useNavigate() hook, but I haven't gotten any further than that.
@denizyldz1860
@denizyldz1860 5 ай бұрын
Thanks for the video and I don't know if it is a stupid question but which mouse are you using? I just really like the click sound.
@floramerano6293
@floramerano6293 7 ай бұрын
Again, why do you need to refresh the page to show the greeting message "Hi Brett!"? couldn't you have just shown that greeting the moment the user logs in?
@tylerdurden4563
@tylerdurden4563 7 ай бұрын
did you find any solution for this? I have been struggling with this problem for days
@dest5218
@dest5218 8 ай бұрын
Very very easy to understand, i just subscribed. I wanna ask thou, if i have for example a simple todo list app and the a todoschema in the db, will each users todo list be different or still the same? Saw a comment avout you redoing this project, if you could add a feature like this it would be greatly appreciated and also a git repo. Thanks again.
@learntocode2877
@learntocode2877 10 ай бұрын
Such a great tutorial man!!....
@tukojs
@tukojs 10 ай бұрын
Hi! thanks for the video. I have a problem, i cannot see the cooki on the request headers. Can you help me?
@sanika5924
@sanika5924 8 ай бұрын
I also cannot see
@TheNatsuniidragneel
@TheNatsuniidragneel 6 ай бұрын
Great video, I have some questions, when I type the password in React, if I Login and inspect the login Network Payload, I can see the password before it is hashed, how can I fix that?
@meghpriyaacharya4728
@meghpriyaacharya4728 Жыл бұрын
Thank you so much this helped a lot.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Glad it helped!
@bestclips3481
@bestclips3481 7 ай бұрын
hello bro, i'm sorry for disturbing you, i noticed a problem with my own, if i login with a different username, after i've logged in with one particular user, it still displays the old username untill i refresh please do you have any idea how to fix that
@malekbaouindi4
@malekbaouindi4 7 ай бұрын
Hey there, thanks for the tutorial mate, im having my end of studies project and am following your video to create a video, the single difference is that in the final dashboard file i'll be integrating a power BI dashboard and i was wondering how is that doable ?
@brettwestwooddeveloper
@brettwestwooddeveloper 7 ай бұрын
Thanks for the sub! When talking about the dashboard are you talking about the UI or getting the user information to display on the screen?
@malekbaouindi4
@malekbaouindi4 7 ай бұрын
@@brettwestwooddeveloper thanks for replying, no no, since am studying in the "Data analysis " field, i made a powerBI report, and i successfully integrated it in the mock Dashboard page we made in the tutorial ( thnx again for the vid you're a life saver) now I just need to customize the home page and make it beautiful ( Am still a bit lost on how to do that) and eventually add a logout feature
@Pr0Cre
@Pr0Cre Жыл бұрын
Thank you very much, very well explained.
@adoptedpotato4132
@adoptedpotato4132 5 ай бұрын
Thank you for the tutorial, very well made. Can I use MySQL instead of mongo? What are the trade-offs and the difficulty level please
@brettwestwooddeveloper
@brettwestwooddeveloper 5 ай бұрын
Yes, you can use any database you want. But the MERN stack specifically uses MongoDB and if you don't use MongoDB then its not technically a MERN stack anymore. I have never used MySQL but I have heard its not as scalable compared to Postgres SQL or MongoDB. Still a good option for personal or small projects.
@adoptedpotato4132
@adoptedpotato4132 5 ай бұрын
@@brettwestwooddeveloper Thank you very much for the response and information, greatly appreciated ☺️. This may be a silly question but what would it be called instead of MERN? Yes I want to start off with my first small project but the recommendation is to use MySQL. I will definitely look into learning and using MongoDB in the future.
@spandanmarathe7002
@spandanmarathe7002 9 ай бұрын
Hats off to you!!! Thank you✌✌
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
Thank you! and no problem!
@lostinthenarrativve
@lostinthenarrativve 5 ай бұрын
mind if I ask why you moved on from plain MERN to nextjs for your apps ?
@toniantoine572
@toniantoine572 Жыл бұрын
Hi, I am getting a Cannot Get/ error around 1:01:06, also I am also not seeing my data in mongodb. My network tab is showing 204, no content. Any help?
@williammaroon4568
@williammaroon4568 Жыл бұрын
did you change the MONGO_URI to MONGO_URL like he did in the tutorial? I'm not sure why he changed the convention, but make sure they match.
@harex7336
@harex7336 3 ай бұрын
Great video! Can u make other Models for example "gadgets" and connect them with users (one to one relation). Thanks
@brettwestwooddeveloper
@brettwestwooddeveloper 3 ай бұрын
Thanks for the kind words. I have been using Prisma and Next.js to create one to one relations. Haven't been using the MERN stack for a little bit now.
@lovejoy9445
@lovejoy9445 9 ай бұрын
BRO i have followed your video carefully...after login sucess response header show setcookie....but in next request my request header still not show cookie...can u help me?
@dhruvyadav6635
@dhruvyadav6635 4 ай бұрын
In App.js set "axios.defaults.withCredentials = true"
@blackstormgaming3779
@blackstormgaming3779 5 ай бұрын
Please also create admin login and dashboard which shows all users data who logged in with there name and the email only
@brettwestwooddeveloper
@brettwestwooddeveloper 5 ай бұрын
Will do! Great suggestion!
@aryanmehta7001
@aryanmehta7001 Жыл бұрын
I followed your video and I am getting a weird result at the end. When I log in with one user it shows their name, but after when I back out to the login page and log in with another user, it shows the name of the previous user on the dashboard until i refresh it. After refreshing the page, the name of the current user that's logged in shows up. Can you help me with this please?
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
the page isn't rerendering, you can use a window.location.reload() or other methods as well. Make sure your path is revalidated.
@losarihetze
@losarihetze Жыл бұрын
thank you for this tutorial!,very helpful!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Glad it was helpful! Thanks for the sub!
@solidadosLive
@solidadosLive 11 ай бұрын
Thank you for your tutorial. Yet, I have a question: I did compare the code and follow through three times 1:20:36 `JSONWebToken`, however, while trying login in a browser, and check `Network > Headers` tab, - in your case Cookie appears in `Response Header`, in my case - it does not... (I see only Cookie: in `Request Headers`).. How so?!
@tukojs
@tukojs 10 ай бұрын
could you solve it?
@yutian2721
@yutian2721 10 ай бұрын
i can't see any cookies
@dhruvyadav6635
@dhruvyadav6635 4 ай бұрын
do you mean in request header? if so the in App.js set "axios.defaults.withCredentials = true" @JulianReDev @yutian2721
@shashankpandey374
@shashankpandey374 6 ай бұрын
why we need to reload page to show username in dashboard what we can do to directly show username without refreshing it
@jacobswiney9977
@jacobswiney9977 11 ай бұрын
subscribed! amazing vid
@Vaibhavparmar-i3e
@Vaibhavparmar-i3e 7 ай бұрын
thanks for the video man!!
@andresilveiracastanho5618
@andresilveiracastanho5618 Жыл бұрын
Hi Brett, my dashboard doesn't refresh the old login name on the screen? could you kindly help me? thanks!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
You can use a window.location.reload(). That would be an easy fix. Thanks for the sub!
@ash730ify
@ash730ify Жыл бұрын
is anyone having a problem with Axios? the git and post request keeps throwing errors for me in register, login and userContext
@siphembambo6872
@siphembambo6872 Ай бұрын
I'm having the same issue,did you manage to resolve this?
@beardedraider4751
@beardedraider4751 7 ай бұрын
So i am getting the issue with the user not displaying to at 1:46:00 i have gont over the code and its the same, i am however getting an error with line six and the children just a big red line import axios from 'axios'; import { createContext, useState, useEffect } from 'react'; export const UserContext = createContext({}); export function UserContextProvider({children}) { const [user, setUser] = useState(null); useEffect(() => { if(!user) { axios.get('/profile').then(({data}) => { setUser(data); }) } }, []) return ( {children} ) } Its saying its missing in props validation? How can i fix this and will this make it work?
@beardedraider4751
@beardedraider4751 7 ай бұрын
I was missing a { } around the token on authController line 80, but i am still getting the red line for the children :(
@AadarshLokhande
@AadarshLokhande 7 ай бұрын
could you provide me the code I am also getting same issue
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 25 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 21 МЛН
MERN Todo List App with React 19, Express v5, MongoDB, Node js, and SWR
2:51:32
MERN Stack Ultimate Tutorial - Forgot Password, User Authentication & Email Verification
3:38:04
Brett Westwood - Software Engineer
Рет қаралды 120
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 67 М.
MERN Authentication App with JWT (and TypeScript)
5:00:08
Nikita Dev
Рет қаралды 14 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 85 МЛН
Flutter Shopping App Part 3 - Api, Backend
2:44:22
Double_Dogs
Рет қаралды 43