The SSH_AUTH_SOCK environment variable allows you to specify the socket path that can be used to talk to your hardware device like your Yubikey, secure enclave
SSH_AUTH_SOCK