Authenticator icon indicating copy to clipboard operation
Authenticator copied to clipboard

Added automatic copy of TOTP code upon scanning the qr code

Open sexfrance opened this issue 1 year ago • 4 comments

This pull request introduces functionality to automatically copy a TOTP (Time-based One-Time Password) code to the clipboard after importing an entry, provided the code is valid and not encrypted. Additionally, it enhances user feedback by sending appropriate messages based on the success or failure of the clipboard operation.

Key changes:

New functionality for TOTP code handling:

  • Added logic to retrieve the newly imported entry, apply encryption, and check the validity of the TOTP code. If valid, the code is copied to the clipboard, and a success message is logged. (src/background.ts, src/background.tsR236-R251)
  • Enhanced user feedback by sending a message to the active tab indicating whether the TOTP code was successfully copied or just added. (src/background.ts, src/background.tsR236-R251)

sexfrance avatar Jul 27 '25 09:07 sexfrance

bump

sexfrance avatar Aug 13 '25 14:08 sexfrance

bump

sexfrance avatar Aug 20 '25 20:08 sexfrance

bump

sexfrance avatar Oct 19 '25 16:10 sexfrance

bump

sexfrance avatar Jan 15 '26 22:01 sexfrance