Skip to content

Comments

Auto-clear mnemonic from clipboard after 5 minutes#6

Open
snezik wants to merge 1 commit intodevelopfrom
feature/clear-clipboard
Open

Auto-clear mnemonic from clipboard after 5 minutes#6
snezik wants to merge 1 commit intodevelopfrom
feature/clear-clipboard

Conversation

@snezik
Copy link
Collaborator

@snezik snezik commented Dec 18, 2025

What was done

  • Implemented automatic cleanup of mnemonic phrase from clipboard
  • Clipboard is cleared after 5 minutes only if it still contains the same mnemonic
  • Cleanup timer is reset on repeated paste actions
  • Timer is properly cleared on screen unmount

Comment on lines +8 to +11
const checkIsMnemonic = (s: string) => {
const words = normalizePhrase(s).split(' ');
return words.length === 12 && words.every(Boolean);
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not something to fix now: 12 words should be parametrised to X words as we may have 12 or 24 words in the future.

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.

2 participants