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.
/survey
Previous form state (unused; required by useActionState).
useActionState
Must contain email and password fields.
email
password
AuthFormState with an error on failure, or redirects on success.
AuthFormState
error
Creates a new Supabase Auth account for the given email and password.
Validates with SignUpSchema before calling Supabase. On success, redirects to
/surveyso the user can set their preferences.