Hiā¦
seems my brain is not at his default level:-)
So with the old SDK i was using await Moralis.User.logOut();
everything was fine⦠if the user refreshed page nothing happened⦠but now if i using it with the latest SDK absolutly nothing happens. My script still see the logged-in Walletaddress and the Dapp is just loading all the datas ⦠(login button disappears, logoutbutton appears) like⦠if the user still is logged in ā¦
How can i Disconnect the user or clear the MoralisConnection or whatever? This is the function i am using to ādisconnectā (wich is not working)
async function onDisconnect() {
Moralis.deactivateWeb3();
}
The onWeb3Deactivated Listener then calls some other stuff
Moralis.onWeb3Deactivated((result) => {
Moralis.User.logOut();
document.querySelector("#prepare").style.display = "block";
document.querySelector("#connected").style.display = "none";
});
i tried more⦠but dont want to write a bible here⦠in a nutshell ⦠logout not working ^^
would be awesome if someone could help me out here sitting on this since hours