Preheat oven to 350 degrees F. Line a 9x9-inch pan with parchment paper and clip binder clips on the sides of the pan to hold the parchment paper in place. Lightly spray the parchment paper with nonstick cooking spray.
In a medium bowl, add the flour, baking powder, salt, cinnamon, ginger, and nutmeg. Whisk until combined and set aside.
In a large mixing bowl, add the brown sugar, white sugar, and oil. Whisk until combined.
Add the eggs and vanilla extract. Whisk until the eggs are incorporated.
Add the mashed sweet potato and whisk until smooth.
Add the dry ingredients. Using a hand mixer on medium speed, beat together for 1 minute
Pour into the prepared pan and spread out evenly.
Place in the preheated oven and bake for 25 minutes or until a toothpick inserted into the center comes out clean or with moist crumbs.
Remove the cake from oven and let cool to room temperature.
While cake is cooling, work on the icing.
Icing
Add the powdered sugar, cinnamon, butter, maple syrup, and vanilla extract into a medium bowl. Beat using the hand mixer on low until most of the powdered sugar is worked into the icing.
Turn the mixer to medium and continue to beat until the icing is smooth.
Using an angled spatula, evenly spread over the cooled cake and top with the chopped pecans.
Notes
To use fresh sweet potatoes, peel and slice the sweet potatoes in 1/2" - 1" slices and in cut each slice into 4 pieces. Place the diced sweet potatoes into a medium saucepan and cover completely with water. Place over medium heat and let cook until fork tender. Drain the water fully and mash them with a potato masher until smooth. Let cool completely before adding to the sweet potato cake.Storage: Store in an airtight container at room temperature for up to 2 days or in the fridge for a week.Freezing: Place the completely cooled sweet potato cake in a freezer-safe container or wrapped tightly in two layers of plastic wrap and a layer of heavy-duty aluminum foil. Freeze up to 3 months and thaw overnight in the fridge before serving.