Skip to content

Commit

Permalink
fix logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 committed Sep 3, 2024
1 parent dcf64e0 commit 413d15e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/server/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ module.exports = app => {
}
});
app.get("/auth/logout", req => {
req.logout();
req.logout(
(err) => {
if (err) {
return next(err);
}
res.redirect("/");
}
)
});
};

0 comments on commit 413d15e

Please sign in to comment.