Skip to content

Instantly share code, notes, and snippets.

@13x54n
Created June 23, 2023 07:18
Show Gist options
  • Save 13x54n/cbfa87ba7537308096a8bf1b3f25e9f9 to your computer and use it in GitHub Desktop.
Save 13x54n/cbfa87ba7537308096a8bf1b3f25e9f9 to your computer and use it in GitHub Desktop.
String based Wallet Authentication & Validation for example wallet for blog.
const keyPairExists = () => {
// @note totally not secure on revealing the key for the key pair store & storing on local storage - 13x54r
if (localStorage.getItem("13x54r_keyPair") && localStorage.getItem('13x54r_walletPassword')) {
return true;
} else {
return false;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment