I got by using inertia usePage
import { usePage } from "@inertiajs/react"; const user = usePage();
now i can access the auth user {user.name}
{user.name}