Place the same skillet that was used for the tofu, over medium heat. Add in 1 tbsp of the avocado oil.
Once hot, add in the onions and garlic. Stir for a few minutes, until the onions are golden brown for 8-10 minutes. Add in the remaining 1 tbsp of avocado oil halfway through this process, as the pan will become dry without it.
Add in the ginger and tomato, stir for 1-2 minutes more. Add in a few tbsp of lukewarm water as the pan dries up, so the ingredients don't stick to the bottom.
Stir in the spices (except the garam masala). Slowly add in a half cup of water, to avoid the mixture sticking to the pan.
Stir in the spinach and coconut milk.
Let it cook, covered, on medium-low for about 10 minutes, stirring every other minutes. Add in lukewarm water if the mixture starts to stick to the bottom of the pan.
Add in the garam masala.
Cover the pan to avoid splattering, and use an immersion blender to blend the mixture until smooth. Taste test and add more salt as desired.