test
parent
799100fdd3
commit
95be2a1e78
|
@ -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" */
|
|
||||||
|
|
Loading…
Reference in New Issue