Skip to content

Commit

Permalink
fix 2fa middelware
Browse files Browse the repository at this point in the history
  • Loading branch information
sevelinCa committed Jul 21, 2024
1 parent abab130 commit c90f9a7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,7 @@ app.use(
);

app.use(cookieParser());
app.use((req, res, next) => {
if (req.originalUrl === '/webhook') {
next();
} else {
express.json()(req, res, next);
}
});
app.use(express.json);
app.use(express.urlencoded({ extended: true }));
app.use(
session({
Expand Down

0 comments on commit c90f9a7

Please sign in to comment.