test
parent
c9f80fb9cf
commit
c6e5a9df03
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue