I have been in this situation with my now 3yo daughter. She was potty training, we were in an aunt's house, there was only bar soap. I prefer liquid soap for hands, so she wasn't familiar with the bar but she didn't try to eat it! We just explained and she happily used it (it was pink!) to wash her hands, and we went on our way.