useStackApp()

The useStackApp hook returns a StackClientApp object from the one that you provided in the StackProvider component. If you want to learn more about the StackClientApp object, check out the StackApp documentation.

Example:

1import { useStackApp } from "@stackframe/stack";
2
3function MyComponent() {
4 const stackApp = useStackApp();
5 return <div>Sign In URL: {stackApp.urls.signIn}</div>;
6}