test
parent
c9f80fb9cf
commit
c6e5a9df03
|
@ -57,7 +57,7 @@ passport.use(
|
||||||
"https://www.googleapis.com/auth/calendar.events.freebusy",
|
"https://www.googleapis.com/auth/calendar.events.freebusy",
|
||||||
"https://www.googleapis.com/auth/userinfo.profile",
|
"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) => {
|
(accessToken, refreshToken, profile, cb) => {
|
||||||
console.log("accessToken", accessToken);
|
console.log("accessToken", accessToken);
|
||||||
|
|
|
@ -9,7 +9,7 @@ router.get(
|
||||||
"/auth/google",
|
"/auth/google",
|
||||||
passport.authenticate("google", {
|
passport.authenticate("google", {
|
||||||
accessType: "offline",
|
accessType: "offline",
|
||||||
session: false,
|
//session: false,
|
||||||
scope: [
|
scope: [
|
||||||
"https://www.googleapis.com/auth/calendar.app.created",
|
"https://www.googleapis.com/auth/calendar.app.created",
|
||||||
"https://www.googleapis.com/auth/calendar.events.freebusy",
|
"https://www.googleapis.com/auth/calendar.events.freebusy",
|
||||||
|
|
Loading…
Reference in New Issue