Melatonin is a commonly used supplement among humans, and while most human supplements aren't safe to share with dogs, melatonin is on the safe list. In fact, melatonin is a naturally occurring hormone secreted by the pineal gland in the brain by both humans and animals.