Reset authentication after power loss



I’ve installed the blinds controller software V2 on a Wemos D1 mini device. I got everything working just fine, however when I disconnect (no power) the Wemos the authentication will reset and I will have to set up the device again, with wifi credentials, MQTT info etc.
Does anyone have a solution for this?

Best regards