The dots are invisible to your eyes. But you can see them through an infrared camera. The iPhone X's camera analyzes the dots on your face and compares it to the image made when Face ID was set up.