diff --git a/ui/index.js b/ui/index.js index fce0b3a..48958a2 100644 --- a/ui/index.js +++ b/ui/index.js @@ -80,12 +80,6 @@ function createUiRouter({ auth, MOCK_USERS, authLimiter }) { ); return; } - } catch (e) { - req.session.destroy(() => - res.redirect('/login?error=' + encodeURIComponent('Токен недействителен, войдите заново')) - ); - return; - } next(); });