I have a YubiKey 5c nano attached to my laptop used for 2FA, etc. It works great and is unobtrusive, but I feel like the small form factor encourages leaving it plugged into the laptop all the time, essentially weakening the two-factor nature of they key... or effectively making my laptop the second factor.
I have Yubico Authenticator set to protect the Yubikey with a password so that if my laptop were stolen, the Yubikey is unusable without the password. But once the password is entered, the Yubikey is usable until unplugged (or the machine is shut down) and I am worried that I may forget to unplug the Yubikey before traveling.
Is there any way to "lock" a Yubikey and require the password after some period of inactivity, or via a CLI-interface? I'm on Mac OS X and could write a shell script, but an OS-angnostic answer would be more useful to the community.