denisesenguel / skyseed-ops-client

Frontend built with ReactJS and BootstrapCSS
0 stars 0 forks source link

Fix Login / Signup and lost Login on Reload #21

Closed denisesenguel closed 2 years ago

denisesenguel commented 2 years ago

At the moment, Login Details have to be submitted twice in order for isLoggedIn and user states to be set correctly. After Signup, user is not immediately logged in as well.

In both cases, the Auth token is stored in local storage as expected.

Also when reloading the page, user and isLoggedIn states do not get set correctly.