React hook to access the current authenticated user.
This standalone React hook is an alias for 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().
Usage
import { useUser } from "@hexclave/next"; // replace `next` with the correct framework SDK packagefunction MyComponent() { const user = useUser(); if (!user) { return <div>Not signed in</div>; } return <div>Hello, {user.displayName}</div>;}