mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-21 21:09:49 +08:00
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.
26 lines
741 B
Plaintext
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)
|