Skip to main content
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 package

function MyComponent() {
  const user = useUser();

  if (!user) {
    return <div>Not signed in</div>;
  }

  return <div>Hello, {user.displayName}</div>;
}