main
alex 2024-01-14 14:33:59 +01:00
parent 799100fdd3
commit 95be2a1e78
1 changed files with 12 additions and 11 deletions

View File

@ -18,17 +18,18 @@ router.get(
router.get(
"/auth/google/callback",
passport.authenticate(
"google",
passport.authenticate("google", { failureRedirect: "/login" }),
function (req, res) {
// Successful authentication, redirect home.
res.redirect("/");
}
)
passport.authenticate("google", {
failureRedirect:
/* "https://customerdashboard.ex.umbach.dev/store/calendar/failed" */ "/login",
}),
function (req, res) {
// Successful authentication, redirect home.
console.log("req.user", req.user);
logger.info("req.user", req.user);
res.redirect(
/* "https://customerdashboard.ex.umbach.dev/store/calendar/finish" */ "/"
);
}
);
export default router;
/* "https://customerdashboard.ex.umbach.dev/store/calendar/failed" */
/* "https://customerdashboard.ex.umbach.dev/store/calendar/finish" */