Closed mddilley closed 5 years ago
This PR fixes a bug where the logout button set the user's knack token cookie to false but did not update isLoggedIn state to false in the App component. Redirect to the login screen depends on this state in the App component (see snippet).https://github.com/cityofaustin/atd-mobile-signals-work-orders/blob/e582df85463bc6c63ac0063e464f820cddce45e7/src/components/App.js#L150
isLoggedIn
false
Prior to this change, the knackUserToken cookie would set to false and then no redirect would happen. The logout button now redirects to the login screen once again.
knackUserToken
This PR fixes a bug where the logout button set the user's knack token cookie to false but did not update
isLoggedIn
state tofalse
in the App component. Redirect to the login screen depends on this state in the App component (see snippet).https://github.com/cityofaustin/atd-mobile-signals-work-orders/blob/e582df85463bc6c63ac0063e464f820cddce45e7/src/components/App.js#L150Prior to this change, the
knackUserToken
cookie would set to false and then no redirect would happen. The logout button now redirects to the login screen once again.