© 2026 Hedgehog Software, LLC
create policy "Users can update own profile." on profiles for update using ( auth.uid() = id );
const { data, error } = await supabase .from('profiles') .update({ ...formValues, }) .match({ id: user?.id });