Components

SignUp

A pre-built sign-up component that handles user registration with email/password and OAuth providers. Shows email verification flow when required.

Usage

tsx
import { SignUp } from "@authon/react";

// Popup mode
<SignUp mode="popup" />

// Inline mode
<SignUp mode="inline" afterSignUpUrl="/onboarding" />

Props

PropTypeDefaultDescription
mode"popup" | "inline""popup"How the sign-up UI is displayed
afterSignUpUrlstringafterSignInUrlURL to redirect to after registration
classNamestringCSS class for trigger button
childrenReactNode"Sign up"Button content (popup mode)

Registration Flow

When email verification is enabled in your project settings, the SignUp component automatically handles the multi-step flow:

1
User enters email + password (or chooses OAuth)
2
Verification email is sent with a 6-digit code
3
User enters the code and is signed in automatically

Dedicated Sign-Up Page

app/sign-up/page.tsx
import { SignUp } from "@authon/react";

export default function SignUpPage() {
  return (
    <div className="flex min-h-screen items-center justify-center">
      <SignUp
        mode="inline"
        afterSignUpUrl="/onboarding"
      />
    </div>
  );
}
Authon — Universal Authentication Platform