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