Unlike the rear-facing camera, the front-facing camera does not have an IR filter and can easily pick up IR lights in the dark.
To try this at home, grab your TV remote, which uses IR light to send information to your TV and open the front-facing camera on your phone. Next, point the front end of the remote at the camera and press any of the remote buttons. The IR light that is normally not visible will be completely visible on your camera screen.
Well I’ll be darned. This works! (iPhone 7)