<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
| Property | Description | Type | Default |
|---|---|---|---|
| fallback | Content to show if user is not logged in. If undefined, routes to / | ReactNode | |
| loading | Content to show while checking whether user is logged in | ReactNode |