mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:07:08 +00:00
Add login/logout middleware
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
async function logout (req, res, next) {
|
||||
res.clearCookie("JWT");
|
||||
res.status(204).send();
|
||||
next();
|
||||
}
|
||||
|
||||
module.exports = logout;
|
||||
|
||||
Reference in New Issue
Block a user