I’ve just added this to my .bash_profile:
enable-sudo-touchid() {
sudo sed -i -e '1s;^;auth sufficient pam_tid.so\n;' /etc/pam.d/sudo
}
But probably automating the check (if the automated checker has the correct permission) would not be that hard.