Skip to main content
Supabase provides multiple ways to register new users. This guide covers email/password signup, email confirmation, and user metadata.

Email and Password Sign Up

The most common authentication method is email and password:

With User Metadata

Store additional user information during signup:
User metadata is stored in the raw_user_meta_data column and is accessible in the JWT token. Don’t store sensitive information here.

Email Confirmation

By default, Supabase requires email confirmation. Users receive a confirmation email with a link:

Enable/Disable Email Confirmation

  1. Go to Authentication > Settings in your Supabase dashboard
  2. Toggle “Enable email confirmations”

Handle Confirmation Callback

app/auth/confirm/route.ts

Phone Sign Up

Register users with their phone number:
Phone authentication requires setting up an SMS provider in your Supabase dashboard under Authentication > Settings > Phone Auth.

Anonymous Sign Up

Allow users to explore your app without registration:

Email Redirects

Customize where users are redirected after email confirmation:

Complete Sign-Up Form Example

React Component

Password Requirements

Enforce strong passwords in your Supabase dashboard:
  • Minimum length (default: 6 characters)
  • Require uppercase letters
  • Require lowercase letters
  • Require numbers
  • Require special characters

Error Handling

Common signup errors:

Next Steps

Sign In Users

Learn how to authenticate existing users

OAuth Providers

Add social login to your app