Skip to main content

Documentation Index

Fetch the complete documentation index at: https://stackauth-e0affa27-chore-move-mcp-to-a-sep-app.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

This standalone React hook is an alias for useStackApp().useUser(). It only exists for convenience; it does not have any additional functionality. For more information, please refer to the documentation for stackClientApp.useUser().

Usage

import { useUser } from "@stackframe/stack";

function MyComponent() {
  const user = useUser();

  if (!user) {
    return <div>Not signed in</div>;
  }

  return <div>Hello, {user.displayName}</div>;
}