That depends on the recipe. I like to use a BBQ sauce base which can come from a bottle or homemade like this recipe. British style baked beans traditionally have a thin tomato sauce as the base. Most, American-style baked beans will have a sauce with ingredients like brown sugar, molasses, ketchup, oil, vinegar, honey, liquid smoke, and other similar components.