You may want to use the captive portal during setup, to get SSID and password from the user, and not every time. Learn how to implement that in this tutorial.
Short but Detailed IoT Tutorials
You may want to use the captive portal during setup, to get SSID and password from the user, and not every time. Learn how to implement that in this tutorial.