useAuth()
null
import { useAuth } from "@kobbleio/next/client"; export default function MyComponent() { const { isLoading, user, isAuthenticated } = useAuth(); if (isLoading) { return <p>Loading...</p>; } if (isAuthenticated) { return ( <div> <p>Welcome, {user.name}!</p> </div> ); } return ( <div> <p>You are not logged in.</p> </div> ); }