diff --git a/server.ts b/server.ts index 87aca7d..b590d5d 100644 --- a/server.ts +++ b/server.ts @@ -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); diff --git a/src/routes/calendarRoutes.ts b/src/routes/calendarRoutes.ts index 19bb112..ed7f3d9 100644 --- a/src/routes/calendarRoutes.ts +++ b/src/routes/calendarRoutes.ts @@ -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",