Are melatonin supplements safe for kids?

A mother and child sleep on the couch together. The mother's arm is around her child.

Parents are buying melatonin products online without getting a prescription, doctors say. (Adobe Stock)