This is a detailed reference for theDocumentation 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.
StackApp object. If you’re looking for a more high-level overview, please read the respective page in the Concepts section.
Overview
- StackClientApp - Client-level permissions for frontend code
- StackServerApp - Server-level permissions with full access
StackClientApp
AStackApp with client-level permissions. It contains most of the useful methods and hooks for your client-side code.
Most commonly you get an instance of StackClientApp by calling useStackApp() in a Client Component.
Table of Contents
Constructor
Creates a newStackClientApp instance.
Because each app creates a new connection to Stack Auth’s backend, you should re-use existing instances wherever possible.
This object is not usually constructed directly. More commonly, you would construct a
StackServerApp instead, pass it into your app setup (see the setup guide), and then use the useStackApp() hook to obtain a StackClientApp.The setup wizard does these steps for you, so you don’t need to worry about it unless you are manually setting up Stack Auth.If you’re building a client-only app and don’t have a SECRET_SERVER_KEY, you can construct a StackClientApp directly.User Management
stackClientApp.getUser([options])
stackClientApp.useUser([options])
stackClientApp.getProject()
stackClientApp.useProject()
Authentication
stackClientApp.signInWithOAuth(provider)
stackClientApp.signInWithCredential([options])
stackClientApp.signUpWithCredential([options])
stackClientApp.sendForgotPasswordEmail(email)
stackClientApp.sendMagicLinkEmail(email)
StackServerApp
LikeStackClientApp, but with server permissions. Has full read and write access to all users.
Table of Contents
Constructor
Creates a newStackServerApp instance.