diff --git a/packages/nextjs/src/server/authMiddleware.ts b/packages/nextjs/src/server/authMiddleware.ts index 77fee7de8f..73c70c5791 100644 --- a/packages/nextjs/src/server/authMiddleware.ts +++ b/packages/nextjs/src/server/authMiddleware.ts @@ -39,7 +39,8 @@ type ExcludeRootPath = T extends '/' ? never : T; type RouteMatcherWithNextTypedRoutes = | WithPathPatternWildcard> | NextTypedRoute - | (string & object); + // eslint-disable-next-line @typescript-eslint/ban-types + | (string & {}); const INFINITE_REDIRECTION_LOOP_COOKIE = '__clerk_redirection_loop';