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>;
}

Stack Auth AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details.

For the most accurate information, please join our Discord or email us.

How can I help?

Ask me about Stack Auth while you browse the docs.