Face ID revolutionizes authentication on iPhone X using a state-of-the-art TrueDepth camera system made up of a dot projector, infrared camera, and flood illuminator. Unfortunately, it may not actually work (as well as it should, anyway). CNBC has a video of the mishap if you want to see it (or re-live it). Face ID projects more than 30,000 invisible IR dots. The IR image and dot pattern are pushed through neural networks to create a mathematical model of your face and send the data to the secure enclave to confirm a match, while adapting to physical changes in appearance over time. All saved facial information is protected by the secure enclave to keep data extremely secure, while all of the processing is done on-device and not in the cloud to protect user privacy.