Using Spark Core in a standalone product changing wifi credentials?

This was my idea for makers who want to integrate the spark core into their hardware and have the user flash the core with what is needed :