An electronic device , comprising: a plurality of lighting devices (104, 106, 208-1, 208-2); a camera ; a display ; and a processor configured to: display an object on the display , obtain, through the camera , a plurality of images based on an image obtaining pattern randomly generated, control a first lighting device, among the plurality of lighting devices, to emit light at a first time and a second lighting device, among the plurality of lighting devices, to emit light at a second time based on the image obtaining pattern randomly generated, obtain through the camera, an image of the user at the first time when the first lighting device emits light and a depth image at the second time when the second time when the second lighting device emits light, obtain biometric information using at least one of the plurality of images, obtain user gaze variation information corresponding to a movement of the object displayed on the display using the plurality of images, and perform authentication on the user based on the biometric information and the user gaze variation information, wherein the processor is further configured to display the object by displaying the object on at least part of the display upon detecting an occurrence of the user authentication event. a plurality of lighting devices (104, 106, 208-1, 208-2); a camera ; a display ; and a processor configured to: display an object on the display , obtain, through the camera , a plurality of images based on an image obtaining pattern randomly generated, control a first lighting device, among the plurality of lighting devices, to emit light at a first time and a second lighting device, among the plurality of lighting devices, to emit light at a second time based on the image obtaining pattern randomly generated, obtain through the camera, an image of the user at the first time when the first lighting device emits light and a depth image at the second time when the second time when the second lighting device emits light, obtain biometric information using at least one of the plurality of images, obtain user gaze variation information corresponding to a movement of the object displayed on the display using the plurality of images, and perform authentication on the user based on the biometric information and the user gaze variation information, wherein the processor is further configured to display the object by displaying the object on at least part of the display upon detecting an occurrence of the user authentication event. display an object on the display , obtain, through the camera , a plurality of images based on an image obtaining pattern randomly generated, control a first lighting device, among the plurality of lighting devices, to emit light at a first time and a second lighting device, among the plurality of lighting devices, to emit light at a second time based on the image obtaining pattern randomly generated, obtain through the camera, an image of the user at the first time when the first lighting device emits light and a depth image at the second time when the second time when the second lighting device emits light, obtain biometric information using at least one of the plurality of images, obtain user gaze variation information corresponding to a movement of the object displayed on the display using the plurality of images, and perform authentication on the user based on the biometric information and the user gaze variation information, wherein the processor is further configured to display the object by displaying the object on at least part of the display upon detecting an occurrence of the user authentication event. <EOS>