useStackApp

The useStackApp hook returns the StackClientApp object that you can use to interact with the Stack API. If you want to learn more about the StackClientApp object, check out the App 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}