Skip to content

Commit

Permalink
withApiAuthRequired callback can return just Response (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Oct 5, 2023
2 parents aa61fd6 + 38a6258 commit 26b54f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/with-api-auth-required.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type AppRouteHandlerFn = (
* dynamic route).
*/
ctx: AppRouteHandlerFnContext
) => Promise<NextResponse> | NextResponse;
) => Promise<Response> | Response;

/**
* Wrap an app router API route to check that the user has a valid session. If they're not logged in the
Expand Down

0 comments on commit 26b54f3

Please sign in to comment.