Clearly remove auth data from storage

This commit is contained in:
Chi Vinh Le
2018-02-01 12:13:33 +01:00
parent 9b7f1dc43e
commit d6ddd9c195
3 changed files with 7 additions and 0 deletions
@@ -60,6 +60,7 @@ class SignInContainer extends React.Component {
if (e.key === 'auth') {
const { err, data } = JSON.parse(e.newValue);
authCallback(err, data);
localStorage.removeItem('auth');
}
};