How to use the HA app between 2 houses?

i have the HA app on my phone and use it to unlock the front door at house A when the phone reads the RFID tagA. the phone signs into wifiA and is able to unlock the door.
i have the exact same set up at house B, even the same wifi settings, HA credentials, and IP address. BUT whenever i get to house B, the app lost sign in credentials and i have to manually enter the HA server’s IP address, id, and password. and off course i have to redo all again once i get to house A.
is there a way for the app to seamlessly go from 1 house to another?