StackApp Constructor Options After SSK

The options for the StackApp constructor.

urlsobject

The URLs that Stack uses to route and redirect.

homestring

The URL of the home page.

signInstring

The URL of the sign-in page.

afterSignInstring

The URL that the user will be redirected to after successful signing in.

signUpstring

The URL of the sign-up page.

afterSignUpstring

The URL that the user will be redirected to after successful signing up.

afterSignOutstring

The URL that the user will be redirected to after successful signing out.

emailVerificationstring

The URL of the email verification page.

passwordResetstring

The URL of the password reset page.

forgotPasswordstring

The URL of the forgot password page.

accountSettingsstring

The URL of the account settings page.

handlerstring

The URL of the handler root.

noAutomaticPrefetchboolean

By default, the Stack app will automatically prefetch some data from Stack's server when this app is first constructed. Those network requests may be unnecessary if the app is never used or disposed of immediately. By setting this option to true, you can disable the prefetching behavior.

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.