main
alex 2024-01-14 15:07:02 +01:00
parent c9f80fb9cf
commit c6e5a9df03
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ passport.use(
"https://www.googleapis.com/auth/calendar.events.freebusy",
"https://www.googleapis.com/auth/userinfo.profile",
],
skipUserProfile: false, // this is important, if not set to true, an error will be thrown
//skipUserProfile: false, // this is important, if not set to true, an error will be thrown
},
(accessToken, refreshToken, profile, cb) => {
console.log("accessToken", accessToken);

View File

@ -9,7 +9,7 @@ router.get(
"/auth/google",
passport.authenticate("google", {
accessType: "offline",
session: false,
//session: false,
scope: [
"https://www.googleapis.com/auth/calendar.app.created",
"https://www.googleapis.com/auth/calendar.events.freebusy",