Rinse the red beans thoroughly and soak them in water for at least 6 hours.
Put the soaked beans in a pot and boil until fully cooked.
Drain the boiled beans and mash them finely.
Transfer the mashed beans to a pan, add erythritol and salt, and simmer over medium-low heat while stirring.
Once thickened to the desired consistency, turn off the heat and let it cool.