Heat coconut oil in a large skillet over medium heat. Add onion, garlic, and ginger. Cook 5 minutes until onion is soft.
Add cumin, turmeric, garam masala, smoked paprika, and chili flakes. Stir and cook 1-2 minutes.
Add chickpeas and sweet potato. Mix so they are coated in spices. Cook 5 minutes.
Pour in coconut milk. Stir and bring to a gentle simmer. Reduce heat to low and cook 10 minutes until sweet potato is tender and sauce thickens.
Add spinach. Stir until it wilts and mixes into the sauce.
Turn off heat. Squeeze lime juice over the curry. Sprinkle with fresh cilantro. Add a dollop of yogurt if desired.
Serve with steamed rice, naan, or quinoa.