medi-connect icon indicating copy to clipboard operation
medi-connect copied to clipboard

[Bug] user can visit profile page even without login

Open AyushSharma72 opened this issue 1 year ago • 3 comments

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

image

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 avatar Oct 15 '24 02:10 AyushSharma72

@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

Luson045 avatar Oct 15 '24 05:10 Luson045

@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 avatar Oct 15 '24 16:10 AyushSharma72

@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.

lade6501 avatar Oct 15 '24 16:10 lade6501