Authenticator
Authenticator copied to clipboard
Added automatic copy of TOTP code upon scanning the qr code
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)
bump
bump
bump
bump