oauth
parent
c62a04e0c3
commit
f6fa02f244
|
@ -55,8 +55,8 @@ passport.use(
|
|||
scope: [
|
||||
"https://www.googleapis.com/auth/calendar.app.created",
|
||||
"https://www.googleapis.com/auth/calendar.events.freebusy",
|
||||
"profile",
|
||||
],
|
||||
skipUserProfile: true,
|
||||
},
|
||||
(accessToken, refreshToken, profile, cb) => {
|
||||
logger.info("accessToken", accessToken);
|
||||
|
@ -88,11 +88,11 @@ app.use((req, res, next) => {
|
|||
console.log("req not found, path:", req.path);
|
||||
res.status(404).send("not found");
|
||||
});
|
||||
|
||||
/*
|
||||
app.use((err: any, req: any, res: any, next: any) => {
|
||||
console.log("req err", err.stack);
|
||||
res.status(500).send({ err: "invalid request" });
|
||||
});
|
||||
}); */
|
||||
|
||||
syncModels();
|
||||
|
||||
|
|
Loading…
Reference in New Issue