From a80e58b6404226926c7f5f9d2ba8fde22b08d4b0 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 19 Nov 2016 20:03:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D0=BA=D0=B8=D0=B9=20=D0=B2=D1=8B=D1=85=D0=BE=D0=B4?= =?UTF-8?q?=20=D0=B8=D0=B7=20=D0=B0=D0=BA=D0=BA=D0=B0=D1=83=D0=BD=D1=82?= =?UTF-8?q?=D0=B0,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=B7=D0=B0=D1=84=D0=B5?= =?UTF-8?q?=D0=B9=D0=BB=D0=B8=D1=82=D1=81=D1=8F=20=D0=B7=D0=B0=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=81=20/current?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/accounts/actions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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));