Skip to content

Added automatic copy of TOTP code upon scanning the qr code #1440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

sexfrance
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant