We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d39c6e1 commit f7b8ac4Copy full SHA for f7b8ac4
src/handlers/middleware.ts
@@ -8,7 +8,10 @@ import { isStaff } from '../utils';
8
9
const checkIfAuthenticated = function(req: Request, res: Response, next: NextFunction) {
10
if (req.path.startsWith('/login') || req.path.startsWith('/logout') || res.statusCode === 503) {
11
- return next();
+ return next(); // Don't require authentication for login/logout
12
+ }
13
+ if (req.path.startsWith('/hooks/')) {
14
+ return next(); // Don't require authentication for webhooks
15
}
16
if (req.isAuthenticated()) {
17
return next();
0 commit comments