@auth0/nextjs-auth0
Version:
Auth0 Next.js SDK
17 lines (16 loc) • 679 B
TypeScript
import { NextRequest, NextResponse } from "next/server.js";
/**
* Normalize a Request or NextRequest to a NextRequest instance.
* Ensures consistent behavior across Next.js 15 (Edge) and 16 (Node Proxy).
* @internal
*/
export declare function toNextRequest(input: Request | NextRequest): NextRequest;
/**
* Normalize a Response or NextResponse to a NextResponse instance.
* Converts plain Fetch Response objects into NextResponse while preserving
* headers, body, status, and statusText.
*
* Required for environments where plain Responses lack Next.js cookie helpers.
* @internal
*/
export declare function toNextResponse(res: Response | NextResponse): NextResponse;