You can get areas of hyperpigmentation anywhere on the skin, including the white part of the eye (called conjunctiva). It should be treated just like anywhere else. If the lesion is growing or changing color or with irregular edges, it should be biopsied. Most likely it is just hyperpigmentation that is benign.
Hope this helps and thank you.