fix: remove duplicate catch block causing startup crash

This commit is contained in:
2026-06-11 14:19:01 +04:00
parent 08248229b9
commit 8b891a4bed
-6
View File
@@ -80,12 +80,6 @@ function createUiRouter({ auth, MOCK_USERS, authLimiter }) {
);
return;
}
} catch (e) {
req.session.destroy(() =>
res.redirect('/login?error=' + encodeURIComponent('Токен недействителен, войдите заново'))
);
return;
}
next();
});