option
parent
e7025778aa
commit
1845c9c75d
|
@ -56,6 +56,7 @@ passport.use(
|
||||||
"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",
|
||||||
],
|
],
|
||||||
|
skipUserProfile: true,
|
||||||
},
|
},
|
||||||
(accessToken, refreshToken, profile, cb) => {
|
(accessToken, refreshToken, profile, cb) => {
|
||||||
logger.info("accessToken", accessToken);
|
logger.info("accessToken", accessToken);
|
||||||
|
@ -87,11 +88,11 @@ app.use((req, res, next) => {
|
||||||
console.log("req not found, path:", req.path);
|
console.log("req not found, path:", req.path);
|
||||||
res.status(404).send("not found");
|
res.status(404).send("not found");
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
app.use((err: any, req: any, res: any, next: any) => {
|
app.use((err: any, req: any, res: any, next: any) => {
|
||||||
console.log("req err", err.stack);
|
console.log("req err", err.stack);
|
||||||
res.status(500).send({ err: "invalid request" });
|
res.status(500).send({ err: "invalid request" });
|
||||||
}); */
|
});
|
||||||
|
|
||||||
syncModels();
|
syncModels();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue