oauth
parent
41b6810392
commit
7d092a01fd
|
@ -18,13 +18,13 @@ router.get(
|
||||||
"/auth/google/callback",
|
"/auth/google/callback",
|
||||||
passport.authenticate("google", {
|
passport.authenticate("google", {
|
||||||
failureRedirect:
|
failureRedirect:
|
||||||
"https://customerdashboard.ex.umbach.dev/store/calendar/failed",
|
/* "https://customerdashboard.ex.umbach.dev/store/calendar/failed" */ "/login",
|
||||||
}),
|
}),
|
||||||
function (req, res) {
|
function (req, res) {
|
||||||
// Successful authentication, redirect home.
|
// Successful authentication, redirect home.
|
||||||
console.log("req.user", req.user);
|
console.log("req.user", req.user);
|
||||||
res.redirect(
|
res.redirect(
|
||||||
"https://customerdashboard.ex.umbach.dev/store/calendar/finish"
|
/* "https://customerdashboard.ex.umbach.dev/store/calendar/finish" */ "/"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue