Logout working

This commit is contained in:
2021-01-25 19:34:06 +11:00
parent 3ccddaec0f
commit 8c754b4570
5 changed files with 34 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
const route = (req, res) => {
//clear cookies and stored data
req.session.account = null;
res.clearCookie('loggedin');
return res.status(200).end();
};
module.exports = route;