hook up auth

This commit is contained in:
2026-09-06 21:50:26 -04:00
parent c4c84f7444
commit 41e5316443
6 changed files with 143 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export async function login(req: Request, res: Response, next: NextFunction) {
req.login(user, (loginErr) => {
if (loginErr) return next(loginErr);
res.json({ id: user.id, email: user.email, name: user.name });
res.redirect("/");
});
},
)(req, res, next);