useHexclaveApp hook returns a HexclaveClientApp object from the one that you provided in the setup flow. If you want to learn more about the HexclaveClientApp object, check out the StackApp documentation.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
React hook to retrieve the HexclaveClientApp instance from the HexclaveProvider.
useHexclaveApp hook returns a HexclaveClientApp object from the one that you provided in the setup flow. If you want to learn more about the HexclaveClientApp object, check out the StackApp documentation.
import { useHexclaveApp } from "@hexclave/next"; // replace `next` with the correct framework SDK package
function MyComponent() {
const hexclaveApp = useHexclaveApp();
return <button onClick={async () => await hexclaveApp.redirectToSignIn()}>Sign in</button>;
}