bounswe / bounswe2022group4

6 stars 3 forks source link

Frontend: User Info Local Storage #591

Closed umutdenizsenerr closed 1 year ago

umutdenizsenerr commented 1 year ago

Description:

In our medical experience sharing platform, I would like to store some user information (e.g. name) in the user's browser using local storage. This will allow us to display the user's information on the page even after the user refreshes the page or closes the tab.

I would like to implement a solution to store the user information in local storage when the user signs in, and delete it when the user signs out. Steps:

1) Modify the SignInPage component to save the user information to local storage when the user signs in. We can use the localStorage.setItem method to save the information.

2) Modify the App component to retrieve the user information from local storage when the page is refreshed or the tab is closed. We can use the localStorage.getItem method to retrieve the information.

3) Modify the App component to delete the user information from local storage when the user signs out. We can use the localStorage.removeItem method to delete the information.

4) Test the implementation to ensure that the user information is stored and deleted from local storage as expected.

Reviewer: @BeratDamar Deadline: 26.12.2022 23.59

umutdenizsenerr commented 1 year ago

Since PR is merged, i am closing the issue.