Melatonin can cause some skin pigmentation in a very very small percentage of individuals taking it.
It is an antioxidant and also protects the skin from ultraviolet damage.
But it is unlikely that only 1 week of usage has caused it . Most individuals taking melatonin have not complained of pigmentation. The effects can be reversed by using lightening products with formulations that inhibit the pigment formation.