main
alex 2024-01-14 12:11:33 +01:00
parent c62a04e0c3
commit f6fa02f244
1 changed files with 3 additions and 3 deletions

View File

@ -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();