diff --git a/src/helpers/with-api-auth-required.ts b/src/helpers/with-api-auth-required.ts index 2972e049d..77de0b882 100644 --- a/src/helpers/with-api-auth-required.ts +++ b/src/helpers/with-api-auth-required.ts @@ -32,7 +32,7 @@ export type AppRouteHandlerFn = ( * dynamic route). */ ctx: AppRouteHandlerFnContext -) => Promise | NextResponse; +) => Promise | Response; /** * Wrap an app router API route to check that the user has a valid session. If they're not logged in the