Skip to content

Instantly share code, notes, and snippets.

@Narottam04
Last active December 18, 2021 06:12
Show Gist options
  • Save Narottam04/f50276871ac00789daad80aa89dce76b to your computer and use it in GitHub Desktop.
Save Narottam04/f50276871ac00789daad80aa89dce76b to your computer and use it in GitHub Desktop.
Error while deleting the account in gun js
function deleteAccount(){
//username and password is stored in authcontext
user.delete(username,userPassword,({ok})=> {
if(ok){
router.push('/')
setUsername('');
setUserPassword('')
}
else{
alert('There was a problem deleting your account')
}
})
}
const handleSubmit = ()=> {
console.log("Deletiion process has begun")
deleteAccount()
}
@Narottam04
Copy link
Author

Narottam04 commented Dec 18, 2021

Wrong user or password.
Could not decrypt
Signature did not match.
{
"@": "DzoZqbeqt",
"err": "Unverified data.",
"#": "tFI5guN4b"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment