Niche API Documentation - v0.1.0
    Preparing search index...

    Function signUp

    • Creates a new Supabase Auth account for the given email and password.

      Validates with SignUpSchema before calling Supabase. On success, redirects to /survey so the user can set their preferences.

      Parameters

      • _prev: AuthFormState

        Previous form state (unused; required by useActionState).

      • formData: FormData

        Must contain email and password fields.

      Returns Promise<AuthFormState>

      AuthFormState with an error on failure, or redirects on success.