Welcome to icliniq.com.
Seeing the sun and very bright lighting can cause damage resulting in phototoxicity and can cause macular (the focusing part of the retina) damage. So I would suggest you avoid such things again. I would recommend you use sunglasses while you are outside and use lubricant eye drops Allergan refresh celluvisc (Carboxymethylcellulose Sodium) one drop four times per day, for both the eyes for one week.
For a headache (if it develops), use any regular pain medication. If you develop any disturbance in vision or if you see a black spot in your visual field, please report immediately to an Ophthalmologist (not optometrist). Do you have any history of sinusitis or use of glasses for near vision?