Skip to content

Commit

Permalink
add log error for token
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitSerrano committed Nov 14, 2024
1 parent 1f954ab commit 6f13192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ app.get(process.env.CALLBACK_URL, async (req, res, next) => {
req.session.oauth2token = tokens;
res.redirect("/");
} catch (e) {
console.error(e)
next(e);
}
});
Expand All @@ -200,5 +201,4 @@ app.post("/logout", async (req, res, next) => {

app.listen(port, () => {
console.log(`App listening on port ${port}`);
console.log(process.env);
});

0 comments on commit 6f13192

Please sign in to comment.