Life is frustrating 😩
##Changes:
- Added navigation to /course after successful login
- Designed navbar when user is logged in
- Added the user button in navbar when user is logged in
- Added redirection to signup if user goes to /course without authentication
- Fixed jwt malformed error in protectRoute.js
The navigation to /course after successful was implemented before but I somehow missed to implement that in login page.
Designing the navbar for authenticated user was very challenging than I expected. As you can see in the image there are multiple attempts at creating the navbar. Everything I tried was just looking bad. The final design is also questionable. But for now it is what it is.
Now unauthenticated user aren’t allowed to visit course page. They will be redirected to signup page if they try. This was supposed to be simple but somehow I made this also hard for myself. I have done this before so this should have been easy for me but nope. The redirecting was working fine but I were to be authenticated and be on course page and then reload, then also I would be redirected to the signup page. After I made up my own solution for this which I don’t think is the best way to do it.
Due to my incapability of designing simple things and solving minor bugs I was questioning my ability to solve problems and design. Which at that moment felt sad 😔.
Also there was jwt malformed error popping up in the backend which was also frustrating to solve. Not because it was hard but because it was easy and I wasn’t able to solve it. I won’t tell you what happened here as the devlog is getting long.
No video this time cuz the I can’t show the navigation changes working as they aren’t working properly. The bug is preventing user from redirecting to /course after login or signup. Instead user is redirected to signup. I know that this because of the two redirection changes made in this devlog. So, I’ll go and fix it asap.
Hope your coding experience isn’t going as frustrating as mine. Thank you for reading my frustrations. Bye…👋
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.