Heat oven to 140°C.
Whisk eggs and sugar together until light and fluffy.
Melt butter and chocolate together, let cool.
When just above room temperature, add cocoa and gluten-free flour then mix well.
Add eggs and sugar.
Mix well. Fold in white chocolate buttons, if using.
Pour mixture into a slice tray and bake for 60 minutes.