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
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 0 deletions

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;