how face detection works in Dark room?

I had a concern when a user is sleeping in his/her room and he/she wants to open his using face detection then how is it gonna work in Darkroom? What's the flow?