Skip to content

Commit

Permalink
revert: use POST for logout
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Nov 14, 2023
1 parent c95328c commit fc1af7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/bootstrap/loaders/passport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default async (app: Application) => {
// failureMessage: "failed",
successRedirect: SUCCESS_REDIRECT,
}));
app.get(LOGOUT_ROUTE, (req, res) => {
app.post(LOGOUT_ROUTE, (req, res) => {
req.logout((err) => {
if (err) {
res.redirect(FAILURE_REDIRECT);
Expand Down

0 comments on commit fc1af7a

Please sign in to comment.