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

    Interface WithPageAuthRequiredOptions

    Options to customize the withPageAuthRequired higher order component.

    interface WithPageAuthRequiredOptions {
        onError?: (error: Error) => Element;
        onRedirecting?: () => Element;
        returnTo?: string;
    }
    Index

    Properties

    onError?: (error: Error) => Element
    withPageAuthRequired(Profile, {
    onError: error => <div>Error: {error.message}</div>
    });

    Render a fallback in case of error fetching the user from the profile API route.

    onRedirecting?: () => Element
    withPageAuthRequired(Profile, {
    onRedirecting: () => <div>Redirecting...</div>
    });

    Render a message to show that the user is being redirected.

    returnTo?: string
    withPageAuthRequired(Profile, {
    returnTo: '/profile'
    });

    Add a path to return the user to after login.