test
parent
bee448cd47
commit
b3566c4630
|
@ -57,11 +57,13 @@ passport.use(
|
|||
"https://www.googleapis.com/auth/calendar.events.freebusy",
|
||||
],
|
||||
skipUserProfile: true, // this is important, if not set to true, an error will be thrown
|
||||
state: true,
|
||||
},
|
||||
(accessToken, refreshToken, profile, cb) => {
|
||||
console.log("accessToken", accessToken);
|
||||
console.log("refreshToken", refreshToken);
|
||||
console.log("profile", profile);
|
||||
|
||||
return cb(null, profile);
|
||||
}
|
||||
)
|
||||
|
|
|
@ -21,6 +21,7 @@ router.get(
|
|||
passport.authenticate("google", {
|
||||
failureRedirect:
|
||||
/* "https://customerdashboard.ex.umbach.dev/store/calendar/failed" */ "/login",
|
||||
successReturnToOrRedirect: "/testhere",
|
||||
}),
|
||||
function (req, res) {
|
||||
// Successful authentication, redirect home.
|
||||
|
|
Loading…
Reference in New Issue