stack/docs-mintlify/sdk/hooks/use-stack-app.mdx
Bilal Godil c91a23ee88 Hexclave rename PR5: rename stack*App local-variable convention
Step 5: rename lowercase local vars stackApp/stackServerApp/stackClientApp/
stackAdminApp -> hexclave* across SDK source, apps, examples, and docs-mintlify
(docs/ excluded). Public StackServerApp/StackClientApp classes and the
useStackApp hook are unchanged. typecheck + lint green.
2026-06-03 12:17:14 -07:00

26 lines
741 B
Plaintext

---
title: "useHexclaveApp"
description: "React hook to retrieve the HexclaveClientApp instance from the HexclaveProvider."
sidebarTitle: "useHexclaveApp"
icon: "react"
mode: "wide"
---
The `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](/sdk/objects/stack-app) documentation.
## Usage
```jsx
import { useHexclaveApp } from "@hexclave/next";
function MyComponent() {
const hexclaveApp = useHexclaveApp();
return <div>Sign In URL: {hexclaveApp.urls.signIn}</div>;
}
```
## Related
- [Setup guide](/guides/getting-started/setup)
- [StackApp object reference](/sdk/objects/stack-app)