Mandalorian season 2 spoilers
In episode 7 of season 2 of The Mandalorian, Din and Mayfeld break into an Imperial facility. They have to use a certain device (I can't remember if it had a name) to get the information they need. However, the device has a facial scanner that Mayfeld says he can't use because he's a criminal. Din has to use it, removing his helmet.
Honestly, this seems like a convenient way for the plot to get Din to remove his helmet for Grogu's sake. What was this device? It should've recognized that Din wasn't in the Imperial army, so why would it work for him? Is the device literally just checking that the person being scanned has a face? If it worked like a fingerprint scanner, then Din should've not been able to use it because he doesn't have a record in the Empire.