Skip to main content

<Authenticated>

<Authenticated> is the component form of useAuthenticated. It internally uses useAuthenticated to provide it's functionality.

import { Authenticated } from "@pankod/refine-core";

<Authenticated>
<YourComponent />
</Authenticated>;

For an example use, see Custom Pages Example and it's explanation.

API Reference

Properties

PropertyDescriptionTypeDefault
fallbackContent to show if user is not logged in. If undefined, routes to /ReactNode
loadingContent to show while checking whether user is logged inReactNode