main
alex 2024-01-14 13:24:31 +01:00
parent bee448cd47
commit b3566c4630
2 changed files with 3 additions and 0 deletions

View File

@ -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);
}
)

View File

@ -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.