diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index 5e9b64104..c5a7cf5bc 100644 --- a/app/soapbox/reducers/auth.js +++ b/app/soapbox/reducers/auth.js @@ -267,7 +267,7 @@ const reducer = (state, action) => { case VERIFY_CREDENTIALS_SUCCESS: return importCredentials(state, action.token, action.account); case VERIFY_CREDENTIALS_FAIL: - return action.error.response.status === 403 ? deleteToken(state, action.token) : state; + return [401, 403].includes(action.error.response.status) ? deleteToken(state, action.token) : state; case SWITCH_ACCOUNT: return state.set('me', action.account.get('url')); case ME_FETCH_SKIP: