oauth
parent
b1cc565c60
commit
41b6810392
|
@ -52,6 +52,10 @@ passport.use(
|
||||||
clientID: process.env.GOOGLE_CLIENT_ID as string,
|
clientID: process.env.GOOGLE_CLIENT_ID as string,
|
||||||
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
|
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
|
||||||
callbackURL: process.env.GOOGLE_CALLBACK_URL as string,
|
callbackURL: process.env.GOOGLE_CALLBACK_URL as string,
|
||||||
|
scope: [
|
||||||
|
"https://www.googleapis.com/auth/calendar.app.created",
|
||||||
|
"https://www.googleapis.com/auth/calendar.events.freebusy",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
(accessToken, refreshToken, profile, cb) => {
|
(accessToken, refreshToken, profile, cb) => {
|
||||||
console.log("accessToken", accessToken);
|
console.log("accessToken", accessToken);
|
||||||
|
|
Loading…
Reference in New Issue