useHexclaveApp().useUser(). It only exists for convenience; it does not have any additional functionality.
For more information, please refer to the documentation for hexclaveClientApp.useUser().
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
React hook to access the current authenticated user.
useHexclaveApp().useUser(). It only exists for convenience; it does not have any additional functionality.
For more information, please refer to the documentation for hexclaveClientApp.useUser().
import { useUser } from "@hexclave/next"; // replace `next` with the correct framework SDK package
function MyComponent() {
const user = useUser();
if (!user) {
return <div>Not signed in</div>;
}
return <div>Hello, {user.displayName}</div>;
}