fix logout

This commit is contained in:
Aaron William Po
2023-02-13 16:15:10 -05:00
parent 7240cb0792
commit 249bfdaf5a
6 changed files with 16 additions and 25 deletions

View File

@@ -21,11 +21,7 @@ router.all(async (req, res) => {
removeTokenCookie(res);
res.status(200).json({
message: 'Logged out.',
statusCode: 200,
success: true,
});
res.redirect('/');
});
const handler = router.handler(NextConnectOptions);