Clear user's localStorage when verify_credentials fails

This commit is contained in:
Alex Gleason
2020-12-11 09:04:34 -06:00
parent c23694b1eb
commit 83bebe38bc

View File

@ -16,6 +16,7 @@ export default function me(state = initialState, action) {
case ME_FETCH_FAIL:
case ME_FETCH_SKIP:
case AUTH_LOGGED_OUT:
localStorage.removeItem('soapbox:auth:user');
return false;
default:
return state;