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