Disable Instant Lock on MacOS
Instant lock is the name of the feature which locks the machine when the Touch ID button is pressed.
You can disable it with:
shell
defaults write com.apple.loginwindow DisableScreenLockImmediate -bool yesOr turn it back on by changing that yes to a no.
There are options available for that loginwindow here in the Apple documentation.
See keyboard - Macbook Pro - Disable lock on touch id press - Ask Different
