Open the can and drain some of the juice. You want a glossy glaze, not a drowning pool.
In a small saucepan, combine peaches, sugar, cinnamon, ginger, chili flakes (if using), lemon juice, and salt. Stir to coat everything evenly.
Cook over medium heat for 5-7 minutes, stirring occasionally. The peaches should soften, and the syrup should thicken a bit.
Taste and adjust. If it needs more warmth, add a tiny pinch more cinnamon. If it’s too sweet, a splash of lemon helps cut it.
Remove from heat. Let cool slightly before serving to avoid a scorching-hot spoonful that ruins the moment.