[Bug] user can visit profile page even without login
Is there an existing issue for this?
- [X] I have searched the existing issues
Bug Description?
the user can visit profile page without login i will add private route feature so that user have to do login to visit certain routes
Add Screenshots
What browsers are you seeing the problem on?
No response
Record
- [X] I agree to follow this project's Code of Conduct
- [X] I'm a GSSOC contributor
- [X] I want to work on this issue (Optional)
- [X] I'm willing to provide further clarification or assistance if needed.
@AyushSharma72 yeah that'd be a nice idea, although this is a navbar error, as we are storing the login data into cache, you are still logged in but navbar is not showing logout and profile link and instead showing login and signup
@AyushSharma72 yeah that'd be a nice idea, although this is a navbar error, as we are storing the login data into cache, you are still logged in but navbar is not showing logout and profile link and instead showing login and signup
still if user write the url http://localhost:3000/profile in the address bar he will be able to visit the profile page
@AyushSharma72 yeah that'd be a nice idea, although this is a navbar error, as we are storing the login data into cache, you are still logged in but navbar is not showing logout and profile link and instead showing login and signup
still if user write the url http://localhost:3000/profile in the address bar he will be able to visit the profile page
we need to create protected routes in App.js for profile and other authenicated links.