Drain the tofu and pat dry with a clean kitchen towel. Tear into bite-sized chunks. Repeat the same with tempeh, but you don't have to wash fresh tempeh.
Heat oil in a pan over medium heat. Pan-fry the tofu until golden and crispy on all sides. Remove and set aside. Repeat the same with tempeh.
In the same pan, add sliced onions and saute until soften. Add garlic, white part of scallions and saute until fragrant.
Add the soy sauces, vinegar, water, coconut sugar, black peppercorns and bay leaves. Stir to combine.
Bring the sauce to a gentle simmer and allow it to cook for 2–3 minutes to mellow the vinegar.
Return the tofu and tempeh to the pan and toss gently to coat in the sauce. Simmer for 5 minutes, allowing them to absorb the flavours.
Continue cooking until the sauce has reduced slightly and coats the tofu in a glossy glaze.
Remove the bay leaves, garnish with spring onions and serve hot with steamed rice. Enjoy!