diff --git a/src/server/auth.js b/src/server/auth.js index db02221..5621092 100644 --- a/src/server/auth.js +++ b/src/server/auth.js @@ -93,6 +93,13 @@ module.exports = app => { } }); app.get("/auth/logout", req => { - req.logout(); + req.logout( + (err) => { + if (err) { + return next(err); + } + res.redirect("/"); + } + ) }); };