trusat-frontend
trusat-frontend copied to clipboard
BurgerMenu on mobile view could benefit from a logout option
- This should be a quick fix, and would save the user from visiting their settings page and logging out from there
- The function to log a user out can be taken from the
AccountSettings
component and reused for this:
const logout = () => {
localStorage.removeItem("trusat-login-credentials");
localStorage.removeItem("trusat-allow-cookies");
history.push("/");
window.location.reload();
};
@johngribbin I would like to start collaborating on this issue! How about?
@martinvarelaaaa Go for it Martín! Cheers :)