I’ve tried several resets of the Face ID feature with and without my glasses in different lighting, but over the first couple days, the facial recognition works best when I’m wearing glasses in a lit room. In the dark, my face only unlocks the phone if I sit straight up and the room isn’t completely dark
The first 48 hours with an iPhone X
Matt Haughey

You can make this work by removing “Rquire attention for Face ID” and it’s going to work for you….