Python: Create a new user

Parameters

Examples

Sign up with an email and password

response = supabase.auth.sign_up(
    \{"email": "email@example.com", "password": "password"\}
)

Sign up with a phone number and password (SMS)

response = supabase.auth.sign_up(
    \{"phone": "123456789", "password": "password"\}
)

Sign up with a phone number and password (whatsapp)

response = supabase.auth.sign_up(
    \{
        "phone": "123456789",
        "password": "password",
        "options": \{"channel": "whatsapp"\},
    \}
)

Sign up with additional user metadata

response = supabase.auth.sign_up(
    \{
        "email": "email@example.com",
        "password": "password",
        "options": \{"data": \{"first_name": "John", "age": 27\}\},
    \}
)

Sign up with a redirect URL

response = supabase.auth.sign_up(
    \{
        "email": "hello1@example.com",
        "password": "password",
        "options": \{
            "email_redirect_to": "https://example.com/welcome",
        \},
    \}
)