Closed kierancott closed 4 years ago
Commits https://github.com/develop-me/bagajob/pull/42/commits/3a0938cecb37a54388c621b722b3193f2eb3ef7d https://github.com/develop-me/bagajob/pull/42/commits/fe2857b9a0d84667a245b30efaa334e02709c9cb
Action:
api/home/logout
Result:
Visiting api/home/logout
and clicking "Log Out" now clears state and prompts user to return to login
More styling still required.
Styling completed: 524844585d18eb355f41153a196daf555b30ea21 8497adb9bb115604424460cb1e6942392caddfe3 8788ee0e8a32b8b0f77816afdfc80a9a569d862a
Issue:
The app stores the bearer token in state for use in requests sent to the API. There is no way for the user to clear their information in state, leading to bearer token conflict when another user tries to log in.
Action:
Implement "Log Out" functionality to clear user information, including token, from state.