oh, I misunderstood.
Once the library gets the new credentials from the app, it will set them like @ScruffR mentioned.
Then if you wanted to reset the device (one way to force the device to connect to the new Wi-Fi) you can do this in the callback function like so:
Note: the delay(1000) is optional.