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