Skip to content

Commit

Permalink
Update Auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FancMa01 committed Jan 23, 2025
1 parent bcc8fb7 commit 93875f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tombolo/client-reactjs/src/redux/actions/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { setUser, getUser } from '../../components/common/userStorage';

//function to centralize storage clearing
const clearStorage = () => {
localStorage.removeItem('user');
//localStorage.removeItem('user');
//clear whole storage on login and logout to ensure nothing is kept unecessarily
localStorage.clear();
};

async function login({ email, password, deviceInfo }) {
Expand Down

0 comments on commit 93875f2

Please sign in to comment.