diff --git a/src/components/accounts/actions.js b/src/components/accounts/actions.js index 37fe539..c9e0cda 100644 --- a/src/components/accounts/actions.js +++ b/src/components/accounts/actions.js @@ -34,7 +34,11 @@ export function authenticate({token, refreshToken}) { refreshToken } })) - ) + , () => { + dispatch(logout()); + + return Promise.reject(); + }) .then(({user, account}) => { dispatch(add(account)); dispatch(activate(account));