Skip to main content

Documentation Index

Fetch the complete documentation index at: https://stackauth-e0affa27-apps-support.mintlify.app/llms.txt

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

This is the SDK reference for Stack Auth’s Next.js SDK.
For setup instructions and how to use the SDK, see Setup & Installation. If you are using a framework or programming language other than Next.js, you can use our REST API.

General

TypeDescription
StackClientAppClient-level permissions for frontend code
StackServerAppServer-level permissions with full access
ProjectProject configuration and settings

Users & User Data

TypeDescription
CurrentUserClient-side authenticated user
ServerUserServer-side user with full access
CurrentServerUserCurrent user with server permissions
ContactChannelUser contact information (email, phone)
ServerContactChannelServer-side contact channel with extended control

Teams

TypeDescription
TeamTeam management and configuration
ServerTeamServer-side team with full access
TeamPermissionTeam-level permissions
ServerTeamPermissionServer-side team permissions
TeamUserTeam membership representation
ServerTeamUserServer-side team user
TeamProfileTeam-specific user profiles
ServerTeamProfileServer-side team profiles

Email

TypeDescription
SendEmailOptionsEmail sending configuration

Payments & Items

TypeDescription
CustomerCustomer billing interface
ItemClient-side resource management
ServerItemServer-side resource management with quantity operations

Hooks

HookDescription
useStackAppReact hook to access the StackClientApp instance
useUserReact hook to access the current user

API Keys

TypeDescription
ApiKeyAPI key management for programmatic access