Can't use auth.uid() inside functions - Supabase