mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-19 21:00:40 +08:00
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com> Co-authored-by: Madison Kennedy <madison@Madisons-MacBook-Pro.local> Co-authored-by: BilalG1 <bg2002@gmail.com>
17 lines
506 B
Plaintext
17 lines
506 B
Plaintext
---
|
|
title: useStackApp
|
|
---
|
|
|
|
The `useStackApp` hook returns a `StackClientApp` object from the one that you provided in the [`StackProvider` component](../../components/stack-provider.mdx). If you want to learn more about the `StackClientApp` object, check out the [StackApp](../objects/stack-app.mdx) documentation.
|
|
|
|
Example:
|
|
|
|
```jsx
|
|
import { useStackApp } from "@stackframe/stack";
|
|
|
|
function MyComponent() {
|
|
const stackApp = useStackApp();
|
|
return <div>Sign In URL: {stackApp.urls.signIn}</div>;
|
|
}
|
|
```
|