In the One-Time Password field for the entry, click on the QR code scanner icon at the far end. To add a 2FA account to Secrets, first add a password entry for the account via the File > New Item option or the File > New > Login option. Secrets is one of them, and it makes setting up 2FA codes easy.
Many password managers now double up as authenticator apps.