Stack Auth
WelcomeGuides
SDKComponentsAPI Reference
OverviewFAQ
Getting Started
SetupComponentsUsersProductionVite JavaScript Example
Apps
API KeysEmailsOAuthOrgs and TeamsRBAC PermissionsWebhooksPayments
Concepts
Backend IntegrationCustom User DataSign-up RulesJWT Tokens
OAuth Providers
Stack AppTeam SelectionUser Onboarding
Customization
Custom PagesCustom StylesDark ModeInternationalization
Page Examples
Forgot PasswordPassword ResetSign-In Page ExamplesSign-Up Page Examples
Other
CLI AuthenticationSelf-hostSupabaseConvexMCP Setup
Stack Auth Docs
Page Examples

Sign-Up Page Examples

Last updated Jan 12th, 2026

This page provides examples of how to create custom sign-up pages for your application using Stack Auth components and functions.

Custom page with SignUp component

app/handler/sign-up/page.tsx

You can also use useUser at the beginning of the sign-up page to check whether the user is already signed in and redirect them to another page if they are.

Other useful components

CredentialSignUp: A component that renders a complete form for signing up with email and password. It handles validation, error states, and submission automatically.

OAuthGroup: A component that displays a list of available OAuth provider sign-up buttons. The available provider list is automatically fetched from the server based on your project configuration.

OAuthButton: A component that renders a single OAuth sign-up button for a specific provider. Use this when you only want to offer specific OAuth providers.

Custom OAuth Sign Up

OAuth sign-in and sign-up share the same function. Check out the Sign In example for more information.

Custom Credential Sign Up

app/handler/sign-up/page.tsx

Custom Magic Link Sign Up

Magic link sign-in and sign-up shares the same function. Check out the Sign In example for more information.

Previous PageSign-In Page Examples
Next PageCLI Authentication

On this page

Custom page with SignUp componentOther useful componentsCustom OAuth Sign UpCustom Credential Sign UpCustom Magic Link Sign Up

Stack Auth AI

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.