diff --git a/apps/api/src/middleware/auth.ts b/apps/api/src/middleware/auth.ts index 906f505..198f55b 100644 --- a/apps/api/src/middleware/auth.ts +++ b/apps/api/src/middleware/auth.ts @@ -23,7 +23,8 @@ if (process.env.AUTH_DISABLED === "true") { } export const authMiddleware: MiddlewareHandler = async (c, next) => { - if (c.req.path.startsWith("/api/auth/")) { + const path = c.req.path; + if (path.startsWith("/api/auth/") || path.startsWith("/api/webhooks/")) { await next(); return; }