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:
import { useStackApp } from "@stackframe/stack";
function MyComponent() {
const stackApp = useStackApp();
return <div>Sign In URL: {stackApp.urls.signIn}</div>;
}