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

    Type Alias WithPageAuthRequired

    WithPageAuthRequired: <P extends object>(
        Component: ComponentType<P & UserProps>,
        options?: WithPageAuthRequiredOptions,
    ) => React.FC<P>
    const MyProtectedPage = withPageAuthRequired(MyPage);
    

    When you wrap your pages in this higher order component and an anonymous user visits your page, they will be redirected to the login page and then returned to the page they were redirected from (after login).

    Type declaration