Heat oil in a pan over medium heat. Add onions and cook for 5 minutes. Add zucchini and a pinch of salt and pepper and cook for another 5 minutes. Lastly add in garlic and basil and cook for 3-5 more minutes until everything is cooked and softened.
Add zucchini, garlic and onion to a blender along with the rest of the sauce ingredients. Blend until smooth.
Mix sauce with pasta and white beans if using.
Notes
This makes enough sauce for about 4 servings of pasta or 1 small bag of pasta.