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( router.get(
"/auth/google/callback", "/auth/google/callback",
passport.authenticate( passport.authenticate("google", {
"google", failureRedirect:
passport.authenticate("google", { failureRedirect: "/login" }), /* "https://customerdashboard.ex.umbach.dev/store/calendar/failed" */ "/login",
}),
function (req, res) { function (req, res) {
// Successful authentication, redirect home. // Successful authentication, redirect home.
res.redirect("/"); 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; export default router;
/* "https://customerdashboard.ex.umbach.dev/store/calendar/failed" */
/* "https://customerdashboard.ex.umbach.dev/store/calendar/finish" */