henryhoangduong / Ecommerce

0 stars 0 forks source link

Bug: User Login Not Maintained After Page Refresh #21

Open PipooPenguin opened 11 months ago

PipooPenguin commented 11 months ago

Current Behavior

After logging in on website, if the page is refreshed, the user is logged out and the website does not remember the user's login information.

Expected Behavior

The website should remember the user's login information even after the page is refreshed. The user should remain logged in until they manually log out.

To Reproduce

Steps to reproduce the behavior:

  1. Research user-router-dom and React User Login and Authentication
  2. Go to the App.js.
  3. Write valid <UserRoute />
  4. Refresh the page.
  5. Notice that the user is logged out.

code