Best practices for mnemonic recovery
masterWhen building applications that handle mnemonic phrases, it is recommended to allow recovery from phrases that have invalid checksums or use wordlists your app doesn't natively support.
If a checksum is invalid, warn the user that the phrase was not generated by your app and ask if they want to proceed. This allows users to recover phrases from other apps. You should still perform basic validation, such as ensuring the input contains at least 12 words separated by spaces: phrase.trim().split(/\s+/g).length >= 12.