@auth0/nextjs-auth0 - v4.17.0
    Preparing search index...

    Type Alias AppRouterPageRoute<P>

    AppRouterPageRoute: (obj: P) => Promise<any>

    An app route that has been augmented with WithPageAuthRequired. Returns any to be compatible with React's return types while avoiding React dependency.

    The generic parameter P allows passing Next.js PageProps or LayoutProps types for strongly-typed route parameters:

    export default auth0.withPageAuthRequired(
    async function Page(props: PageProps<"/customers/[id]/details">) {
    const { id } = await props.params;
    return <div>{id}</div>;
    }
    );

    Type Parameters

    Type Declaration

      • (obj: P): Promise<any>
      • Parameters

        • obj: P

        Returns Promise<any>