I don’t know if there is already a shortcut in the desktop app to copy the totp token to clipboard, like your have CMD + P to copy the password to the clipboard.
I’m coming from KeepassXC and there is a shortcut “CMD+T” to copy the totp.
Maybe some other people think this would be nice
It would be nice if you can implement it if it isn’t already.
The TOTP value is copied automatically. Whenever you fill the login credentials if there is a TOTP associated with the login it is automatically copied to the clipboard, so you can just paste it. That feature can be turned off in options, however it’s on by default.
I am craving a feature where the TOTP is copied automatically when auto-fill on page load is active. I find myself navigating into the extension for the TOTP every time. It’s one click more than disabling auto-fill and taking advantage of the existing auto-copy implementation but it’s still faster overall. Frustrating.
I would actually love to have this feature in the browser extension as well: to get the TOTP copied in the clipboard with the shortcut for the credentials is nice, but some websites require it more than once, or at a later time, and it would be nice not to have to open the popup, select, etc…
I like that when filling in the username and password using the Bitwarden browser extension, it automatically copies the current 2-Factor code into the clipboard.
However, I sometimes need to copy the 2FA code manually. This happens when the 2FA code expires in the meantime or for websites where I use Chrome to prefill the username and password and only use Bitwarden for the 2FA code.
Currently, copying the 2FA code for the current website requires clicking on the extension icon and then on the button to copy the code using the mouse. It would be very convenient to expose the functionality directly as a keyboard shortcut.
Would be nice to have this. We have some workflows where after initial login we are periodically prompted for totp only. Thus its not copied to clipboard. I can click on the plugin and copy it but having a shortcut to copy totp would be nice.
There is a new feature that allows the TOTP code to be auto-filled (e.g., using Ctrl+Shift+L), but it is not yet compatible with linked custom fields, so it only works if the fields name or id, etc. matches one of the 8 hardcoded values in the autofill-constants.ts:
In the normal login scenario, the verification code is copied to the clipboard after filling login/password.
However there are scenarios where you are redirected to the OTP verification page such as https://www.npmjs.com/escalate/otp which you get after npm publish from the terminal.
For this case, OTP is available but it requires mouse clicks to copy the desired OTP code.
It would be handy to have a keyboard shortcut for such cases.
FYI, auto-filling may work for such use-cases. Bitwarden supports auto-filling of TOTP codes using Ctrl+Shift+L; however, the TOTP auto-fill algorithm is still not very good at recognizing TOTP input fields, so this may not work on every website.
Ctrl+Shift+L would work by itself, but only if the input field’s name or id attribute matches one of the 8 hardcoded values in the autofill-constants.ts code. And if it doesn’t work, then you can use the work-around that you’ve found.
An alternative solution is to use the right-click context menu, and select Bitwarden > Copy Verification Code.
FYI, your feature request matches an existing, older feature request, so I will merge your thread into the other one.