Optional
onwithPageAuthRequired(Profile, {
onError: error => <div>Error: {error.message}</div>
});
Render a fallback in case of error fetching the user from the profile API route.
Optional
onwithPageAuthRequired(Profile, {
onRedirecting: () => <div>Redirecting you to the login...</div>
});
Render a message to show that the user is being redirected to the login.
Optional
returnwithPageAuthRequired(Profile, {
returnTo: '/profile'
});
Add a path to return the user to after login.
Options to customize the withPageAuthRequired higher order component.