Only delete token if it 403's
This commit is contained in:
@@ -155,7 +155,7 @@ const reducer = (state, action) => {
|
||||
case VERIFY_CREDENTIALS_SUCCESS:
|
||||
return importCredentials(state, action.token, action.account);
|
||||
case VERIFY_CREDENTIALS_FAIL:
|
||||
return deleteToken(state, action.token);
|
||||
return action.error.response.status === 403 ? deleteToken(state, action.token) : state;
|
||||
case SWITCH_ACCOUNT:
|
||||
return state.set('me', action.accountId);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user