From 38a6258327d82fc8d1b9552c090f83c42bdf6ecd Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Thu, 5 Oct 2023 11:29:31 +0100 Subject: [PATCH] withApiAuthRequired callback can return just Response --- src/helpers/with-api-auth-required.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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