Last active
December 18, 2021 06:12
-
-
Save Narottam04/f50276871ac00789daad80aa89dce76b to your computer and use it in GitHub Desktop.
Error while deleting the account in gun js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | |
} | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleSubmit = ()=> { | |
console.log("Deletiion process has begun") | |
deleteAccount() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrong user or password.
Could not decrypt
Signature did not match.
{
"@": "DzoZqbeqt",
"err": "Unverified data.",
"#": "tFI5guN4b"
}