Skip to content

Commit

Permalink
use a callback for logout
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Jan 8, 2025
1 parent 3038300 commit 9e903e7
Show file tree
Hide file tree
Showing 2 changed files with 9,605 additions and 23,876 deletions.
2 changes: 1 addition & 1 deletion server/lib/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ module.exports.setupRegularAuth = app => {
};

module.exports.restLogout = (req, res) => {
req.logout();
req.logout({},()=>{console.log('User logged out');});
res.json();
};

Expand Down
Loading

0 comments on commit 9e903e7

Please sign in to comment.